Skip to main content

All Questions

Tagged with
0 votes
0 answers
401 views

What can I do to fix ImageMagick in Catalina?

I tried to check installations of ImageMagick then brew. In a classic case of knowing just enough to cause trouble the diagnoses are more complicated than I know how to treat. Hoping for a second ...
Pamelane's user avatar
0 votes
1 answer
447 views

How do I batch-convert files from an input list using ImageMagick 'convert'?

I'd like to use ImageMagick's convert command to convert a batch files from GIF to PNG format. I'm using Ubuntu 22.04. I have a file gif-list containing the names of files in GIF format, one per line ...
Borea Deitz's user avatar
  • 1,167
2 votes
1 answer
686 views

Replace green pixels with gray using imagemagick `convert` command

I want to replace green pixels in this png file with gray ones. Based on official examples, I tried the command below and got this result filled with white not gray. It becomes white even if other ...
solzard's user avatar
  • 23
0 votes
0 answers
105 views

textcleaner not found error on powershell

Iam trying to run the textcleaner script on windows powershell(bash) textcleaner.sh -g -e normalize -f 50 -o 10 -s 10 "F:\Testing\input\input.tif" "F:\Testing\output\input.tif" I ...
Travelz Online's user avatar
1 vote
1 answer
130 views

ImageMagick display WxH+x+y window

In ImageMagick's display, if I press 'c' and start to drag a crop frame, a small box appears at top left showing WxH+x+y for the crop frame. Is there any way that data can be accessed programmatically ...
user985675's user avatar
3 votes
0 answers
852 views

Imagemagick file conversion not working?

I am trying to convert a file from .gif to .bmp using this command: convert -coalesce pixels8.gif out.bmp While doing this i get this error: convert-im6.q16: memory allocation failed `pixels8.gif' @ ...
JaydevSR's user avatar
5 votes
5 answers
8k views

How can I convert a JPEG image to a RAW image with a Linux command?

I have a series of JPEG images taken with Canon Powershot to JPEG. How can I convert/transform them to RAW images? Not with a graphical tool, but from the command line! NB : Using raw images to stack ...
lolotux's user avatar
  • 107
2 votes
1 answer
2k views

ImageMagick - How to avoid overwriting existing files with mogrify?

I have these files under ./: a.jpg b.jpg 256/a.jpg I'm running this command to convert files to 256px: mogrify -path ./256/ -resize 256x256 *.jpg But this command always overrides the existing files ...
Hykilpikonna's user avatar
1 vote
2 answers
2k views

Accessing parent and grandparent directory from linux find and passing to xargs

I'm trying to do a batch imagemagick conversion on all tiffs in directories. The structure of the directories looks like: test 123 456 image.tif 256 857 ...
Goat Karma's user avatar
1 vote
1 answer
2k views

ImageMagick: How to add multiline text superimposed over picture? Text is truncated

Code - convert -size 2000x1000 xc:none -gravity center \ -stroke yellow -pointsize 50 -font Courier-BoldOblique -strokewidth 3 -annotate +100+100 caption:'Conflict is the gadfly of thought. It ...
Madhubala's user avatar
  • 1,882
1 vote
0 answers
579 views

Imagemagick 7.0.8-59 Error Message when Compressing PDF files

I am trying to compress a PDF with this Command: mogrify -compress jpeg -quality 50 path/to/file/* When running the Command I get this error message: Error: ICCbased space /N value does not match ...
gernot's user avatar
  • 11
1 vote
2 answers
334 views

Creating various size thumbnails with filename suffix

I've been battling with this issue for a couple of days and haven't been successful in finding a solution on StackExchange nor any Google searches. I have the following directory structure (...
kinggs's user avatar
  • 111
1 vote
2 answers
5k views

How do I install ImageMagick for MinGW on Windows 7?

Well... I have already installed MinGW32 (I don't know the version - installed in a folder named Git 2.4.4.2) on Windows 7, and I want to install ImageMagick to run some scripts like the follow: echo &...
Universe's user avatar
  • 121
0 votes
0 answers
51 views

Bash - Removing all but a single number in output of command

I'm working on a script to process all images in which the standard deviation is less than a certain threshold, e.g., if overall SD is less than 50 in x image, do y to x. The command I am using to ...
Bluethulhu's user avatar
1 vote
1 answer
450 views

How to parse output to see if a string matches?

Challenge: I need to parse the output from imagemagick's "identify" command to detect the presence of a particular string. If it doesn't exist, then I echo the filename to the screen. Background: I ...
sstringer's user avatar
  • 113

15 30 50 per page