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
0 answers

Montage / Join 2 TIFF images in a 2 col x 1 row tile without losing quality

I have 2 same size, dimensions, and resolution images in TIFF (6400x6400 pixels, 800x800 ppi). The files are 18.7MB and 27.0MB, they were created with R's tiff() with compression="lzw". When I try to create a tile using montage -compress lzw -tile…
ECII
  • 10,297
  • 18
  • 80
  • 121
0
votes
1 answer

How come imagemagick output has nasty glitchy squares instead of smooth gradients?

I'm trying to create filters like instagraph (https://github.com/webarto/instagraph), but the output images have nasty square-shaped transitions instead of smooth gradients. Why and how do I fix this? The command I'm running is this: convert \(…
trusktr
  • 44,284
  • 53
  • 191
  • 263
0
votes
1 answer

Noise near font after adding text via ImageMagick

I put text on image and have some noise. How I can fix it? Image magick options: [ currentImage, "-font", "Micra-Bold", "-pointsize", "40", "-strokewidth", "1", …
Max P
  • 1,439
  • 3
  • 15
  • 33
0
votes
1 answer

Convert: Postscript delegate failed, though works from Terminal

When I execute the following command from a Ruby program run from Sublime2 (via the latter's "build" mechanism) /usr/local/bin/convert /Users/palfvin/tmp/cover_sheet2.pdf -depth 8 /Users/palfvin/tmp/cover_sheet2.tiff I get the following…
Peter Alfvin
  • 28,599
  • 8
  • 68
  • 106
0
votes
1 answer

convert hus and pes file to any types of images

I am trying to convert a massive number of hus and pes files (embroidery files). I was able to do it using ImageMagick in centos but I encountered memory allocation errors and also it only works for pes files. Is there a script that can handle this…
cuzzea
  • 1,515
  • 11
  • 22
0
votes
0 answers

How to get a gold foil look using ImageMagick

My requirement is to convert a image with a transparent background to look like gold foil (the way it’s printed on leather etc.) I've been using ImageMagick and am getting excellent results with certain kind of PNGs but not with others. The Image…
darkblack
  • 21
  • 1
  • 4
0
votes
0 answers

PHP convert images to JPEG without writing

I would like to know if it's possible to convert a image (from any format) to jpeg without writing in disk? $im = new imagick($url . $image); $im->setImageFormat('jpg'); $im->writeImage($image .".png"); // I dont want this..I want to use a variable…
user2742861
  • 340
  • 1
  • 8
  • 17
0
votes
2 answers

Imagick PDF to JPG Unknown fonts

So recently I managed to create a set of PHP scripts that allows users of a dumbphone to upload a PDF file and view it as JPG images. It works perfectly. I tested it and it seems to work fine in most cases. Also the load is perfectly balanced so no…
0
votes
2 answers

Batch convert TIFF images to PDF ImageMagick Python

I'm trying to convert multiple tiff images to one PDF file using the following code but it's not working. os.system('convert "G:\xyz\abc\TitleDocumentsDownload\Output\abc\2009033100558001\1.tiff"…
0
votes
1 answer

Process Pooling in im4java

Guys am using imagemagick library for image processing in my project(java). When multiple requests hit the server, it responds very slowly. Now, multiple convert commands ( executes as an individual process ) are executed simultaneously and to avoid…
gursahib.singh.sahni
  • 1,559
  • 3
  • 26
  • 51
0
votes
2 answers

ImageMagic renders image with black background

I'm converting pdf files to images with ImageMagic, everything is ok until I use -resize option, then I get image with black background. I use this command: convert -density 400 image.pdf -resize 25% image.png I need to use -resize option otherwise…
Alen
  • 897
  • 2
  • 15
  • 33
0
votes
0 answers

Oddity with exec and imagemagick

I can take the command and have it echo the exact command and then run it in a shell and it works and generates the image. However when it is run though exec it does not work. exec('convert ' . $from_path . ' -trim +repage -resize ' . ICON_SIZE .…
Case
  • 4,244
  • 5
  • 35
  • 53
0
votes
0 answers

Imagemagick convert works on OpenEXR files with non-RGBA channel names

OpenEXR files generated by Pixar's RenderMan uses different, non-traditional, channel names, Ci.r, Ci.g, Ci.b, a instead of R, G, B, A. And Imagemagick's convert seems not to handle this? Given a EXR file with the following channels: file format…
Drake Guan
  • 14,514
  • 15
  • 67
  • 94
0
votes
0 answers

ImageMagick; PHP, equivalent to shell "convert"

In my web hosting, I can't use shell, so is there any alternative for this command? system("convert $src +dither -layers optimize -depth 16 -colors 32 $dest"); I want to compress gif files, so I need to preserve animation. P.S: Of course, that I…
jukben
  • 1,088
  • 7
  • 16
0
votes
1 answer

How to use imagemagick to re-size only when image is too big?

I have a bunch of screenshots of websites. I need to display thumbnails of each site on a page, so I've been re-sizing them using convert 6.6.9 like this: convert -trim -thumbnail "200x200>" $name.png $name.thumb.png This works fine for most…
user187150
  • 15
  • 4