Problem: ImageMagick convert cannot crop the image. Doesn't it seem to recognize the type of image?
What I tried:
I searched on the Internet and I saw several similar problems, but not mine. I tried to solve them, including
- Uninstall and reinstall ImageMagick through Brew.
- define the -list format (JPEG, GIF, PNG, TIFF, etc. were all there, and all had rw rights)
- convert -version (png is one of the built-in delegates)
- convert pic1.png pic1-jpg.jpg (this worked fine)
- convert pic1-jpg.jpg pic1-jpg.jpg (this worked fine)
- convert pic1-jpg.jpg 805X972 + 34 + 94 pic1-jpg-crop.jpg (this led to the same error as for png, as shown below)
I work on Mac OSX El Capitan and everything else in the terminal is working fine. ImageMagick has already been installed.
When I run:
$ convert /Users/Innovate/Desktop/crop/2015-04-26-GinaDate13_487.png 805X972+34+94 /Users/Innovate/Desktop/crop/2015-04-26-GinaDate13_487-cropped.png
I got:
convert: cannot open image '805X972 + 34 + 94': there is no such file or directory @ error / blob.c / OpenBlob / 2702.
convert: there is no decoding delegate for this image format '' @ error / constitute.c / ReadImage / 504.
no decoding delegate for this image format '' @ error / constitute.c / ReadImage / 504
In other posts on this subject, people get
convert delegate without decoding for this PNG image format
Or similar (except for their image type or file name and image type)
However, mine says nothing about the type of image file ...
I did not try to uninstall ImageMagick and then install it manually from the sources, because I am not very sure about this ... (this solution was shown: https://stackoverflow.com/a/167379/ )
Does anyone know what might happen?
Also, can someone help me interpret the @ error / constitute.c / ReadImage / 504 part? I am looking at the code for construct.c, but I'm not sure if I can get useful information from it to solve my problem (I know a little C)
Thanks!