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

How to resize an image by saving the resized version under a new name?

Thanks for being a part of this amazing community. Here I've been fighting with my script and looks like I need a hint. I have the following file structure: Mother_Directory/ ./child1_Directory file1.jpg file2.JPG file3.jpg …
migrant
  • 13
  • 1
  • 6
0
votes
1 answer

How to instruct convert to resize only first TIFF frame if file path specified?

I tested some code which works fine: C:\root\Dropbox\WWW\TIFF\sandbox 17:17:37,86 $c:\cygwin\bin\convert.exe gallery.tif[0] -thumbnail 300x300^ -format jpg gallery.jpg But I want to specify full path to image and it is not works - why it is not…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
0
votes
1 answer

Call S3Express in batch, pass command, loop

I've got a .bat file that will apply a few quick ImageMagick conversions across a large collection of subdirectories. I need to get this script to also push the output files to AWS S3 using the S3Express utility (Windows variant of S3cmd). echo…
muad-dweeb
  • 995
  • 1
  • 9
  • 24
0
votes
3 answers

Imagemagick - Strange fragments around text in image

I'm using Imagemagick to dynamic generating an OpenGraph Image. I'm processing that image step by step, means: Resize the image to 1200px width Grayscale the image Make image transparent Multiply the transparent image with the filter color …
Yves
  • 1,152
  • 1
  • 23
  • 30
0
votes
1 answer

Clean Monocrome image with Imagemagik in iOS

I'm trying to create a code that allows me to clear images to be read by and OCR engine. So far I haven't been able to accomplish much. Only install Imagemagink on my iOS project and use some of the API functions to create a Gray Scale image. What…
tomcontr
  • 98
  • 9
0
votes
1 answer

How can I efficiently create a PNG image from a GIF (First Frame Only)?

I tried the following but it takes too long to process: imagepng(imagecreatefromstring(file_get_contents($input)), $output); where the $input is an animated GIF. Any idea how to convert a large animated GIF to a still PNG in PHP fast? I simply…
BunkBedNoob
  • 367
  • 1
  • 4
  • 15
0
votes
1 answer

Imagemagick remove odd pixels from the image

I have a mortar image and it has some blackish pixels on the inside edges. I need to make those blackish pixels colored same as the gray mortar color. Look at the beginning of the image I have pointed out some blackish pixels on the edges
0
votes
0 answers

Scaling images is not working inside TYPO3

I have some trouble to make TYPO3 scale images. If I test tin the Install tool, Combining images is working, but scaling images is not. If I create a test file in the root directory of the server with a small Convert test, the images is scaled…
Jeppe Donslund
  • 469
  • 9
  • 25
0
votes
1 answer

ImageMagic resize over background image

I need to resize images in PaperClip which uses ImageMagick over a background image. I made custom PaperClip processors (https://gist.github.com/xxx/1051938 and https://github.com/thoughtbot/paperclip#custom-attachment-processors) and they are…
0
votes
1 answer

ImageMagick - convert pdf to jpg

With this code, I try to convert an uploaded pdf to a jpg. $newname = date("U"); $target = "../uploads/"; $temp = "../temp/"; if($_FILES["fileToUpload"]["type"] == "application/pdf") { print "pdf"; if(move_uploaded_file(…
Jeppe Donslund
  • 469
  • 9
  • 25
0
votes
2 answers

ImageMagick create scaled thumbnail - command line

I am trying to get ImageMagick to convert an image for me (command line linux) what I have is: User uploads image. I convert this image to a jpg NEXT STEP Create a thumbnail of specific sizes without loosing proportions Eventually I will be…
JustSteveKing
  • 968
  • 1
  • 10
  • 29
0
votes
1 answer

How to put powershell commands in an array?

I have a script that does a bunch of image processing. So far it runs sequentially, uses only one core and takes forever. I have four cores at hand. I want to run four of these commands at the same time. To make this happen, I need to put the…
mles
  • 4,534
  • 10
  • 54
  • 94
0
votes
1 answer

Run different Powershell commands on four cores parallel

I have a script that does a bunch of image processing. So far it runs sequentially, uses only one core and takes forever. I have four cores at hand. How can I run four of these commands at the same time? convert.exe -density 200 -quality 80 -delete…
mles
  • 4,534
  • 10
  • 54
  • 94
0
votes
2 answers

ImageMagick compare executable: unrecognized option `-metric' @ error/convert.c/ConvertImageCommand/2060

I tried to use apt-get install imagemagick command to install ImageMagick on my Debian Wheezy. But when I try to diff images, I get following error: root@work:/home/tests/YAML_SHOTS/en-us# convert 1.png 2.png -metric RMSE -compare 3.png convert.im6:…
avasin
  • 9,186
  • 18
  • 80
  • 127
0
votes
1 answer

im4java can't find GhostScript Library when converting images on Web App

I've recently began to use im4java, a java wrapper for ImageMagick, to convert .eps files to .jpg. My code currently is: public void convertESPtoJPG() { //Env.programPAth: C:\\Program Files\\ImageMagick-6.8.9-Q16 //Env.copyToDest:…
antihero989
  • 486
  • 1
  • 10
  • 32