Questions tagged [imagemagick-convert]

The "convert" command, from the ImageMagick® software suite is a program to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

1387 questions
0
votes
1 answer

Tiff to PNG adding a white background - Imagemagic

I am using following imagemacgick code to convert TIFF to PNG convert -profile ISOcoated_v2_eci.icc -profile eciRGB_v2.icc 1.tiff 3.png TIFF file is at http://dev9.edisbest.com/images/1.tiff Converted PNG is…
user580950
  • 3,558
  • 12
  • 49
  • 94
0
votes
1 answer

How to convert a pdf to jpeg using ImageMagick and php

I'm having a hard time converting a pdf file to jpg using the php Imagick Library on a wordpress based web site. I have done some reading and I think I need to install Ghostscript to achieve my goal. Is that the case or I can do it without…
ion
  • 1,033
  • 2
  • 16
  • 46
0
votes
2 answers

imagemagick comosite proportion to image size

I want to place year on picture with imagemagick. I have about 4000 pictures. I try to do it with imagemagick using the -compose parameter. Logo is 200x67 px. But all pictures is not the same size. How i can add proportional size of year on each…
Guntis
  • 496
  • 1
  • 5
  • 19
0
votes
1 answer

Convert SVG to PNG with Classic ASP and ImageMagick

I am trying to convert SVG to PNG with ImageMagick. SVG conversion to PNG worked perfectly from command line: Convert -size 200x200 svglogo.svg generatedimage.png It produced a .png I was expecting. Yet, Img.Convert "-size", "200x200",…
IgnasK
  • 384
  • 2
  • 19
0
votes
1 answer

Library compatibility issue using convert

I'm getting a seg fault when running convert from the command line to combine a small number of JPG files into a PDF: $ convert ./file_*.jpg p.pdf Segmentation fault There, you see? To try to track down what's going on, I ran it under the debugger…
Component 10
  • 10,247
  • 7
  • 47
  • 64
0
votes
1 answer

Using transparent on white and black image, makes the transparency inverted

I'm having a missue with a convertion. Using a simple QR code with a white background and a black QR code, I wan't to have ImageMagick to make the white color transparent. To do so, I tried this: /usr/bin/convert ./qr_original.png -transparent…
Repox
  • 15,015
  • 8
  • 54
  • 79
0
votes
1 answer

How to remove background of a low contrast image using imagemagick

I am new to Imagemagick and am trying to work out a script which I can use to remove the background of a number of images. The problems is that some images (see sample below) involve objects whose main color is very close to the background. Can…
0
votes
2 answers

Moving from convert command to straight PHP for ImageMagick

I am moving to a new hosting company that will not allow me to exec a convert command for ImageMagick. So I now have to attempt to do it through straight PHP. I have spent quite a bit of time trying to figure it out and every where that I look,…
Joe Workman
  • 341
  • 1
  • 16
0
votes
2 answers

image magick command compatibility from shell scripts to python

I had initially written all the image magic commands in linux environment for executing in shell scripts. But now due to some functionality to be added I have to implement it through python. Will the same command be compatible? If not how do I go…
Gopal Samant
  • 2,109
  • 3
  • 15
  • 11
0
votes
1 answer

How to rotate the image frame?

convert 'a.png' \ \( -background none -geometry 100x100+150+50! -rotate 5 'b.png' \) \ -composite 'a.png'; This is a simple script to rotate and place an image b on top of image a. My problem is that image b is being rotated within the defined area…
Gajus
  • 69,002
  • 70
  • 275
  • 438
0
votes
2 answers

ImageMagick - Convert XV/VIFF to BMP

I would like to convert a Khoros Visualization Image – .XV or .VIFF extension – to bitmap. I've tried convert tree.xv tree.bmp but it returns a black image, while the original is similar to the following: I've looked into this ImageMagick…
Yamaneko
  • 3,433
  • 2
  • 38
  • 57
0
votes
1 answer

Why is Imagemagick converted from PDF to GIF appear "snowy" when pinned to Pinterest?

I am using Imagemagick to convert a single page PDF into a GIF image. Here is my exec command that I run from PHP: exec("convert -density 600x600 -background white ".$filenamePDF."[0] -scale 700x989 ".$filenameJPG."[0]"); Source PDF:…
Scott
  • 3,736
  • 2
  • 26
  • 44
0
votes
2 answers

ImageMagick - render PNG from SVG file with content off the "page"

I have written a script for converting SVG to PNG which is working pretty well, until there is content in the SVG that is "off the page". eg: The black line will be converted fine, but the green box is completely ignored. Some SVG files have the…
dogmatic69
  • 7,574
  • 4
  • 31
  • 49
0
votes
1 answer

ImageMagick Suddenly Stopped Working in Firefox Only?

So I've been using ImageMagick for quite some time now, but it just recently stopped working in Firefox specifically. I'm running the following line of code: exec('/usr/bin/convert /home/usr/public_html/upload/'.$filename.'[0]…
Aaron
  • 531
  • 3
  • 8
  • 22
0
votes
1 answer

What's the most efficient way to combine the image tiles from xckd's Click and Drag into a single composite .png?

I'm attempting to combine all of the image tiles from Click and Drag using ImageMagick. It's taking a considerably long time to process. More generally, if I have collection of greyscale, 8-bit png files that I want to combine (tile) into a single…
ak112358
  • 713
  • 2
  • 13
  • 25