Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick's convert: no images defined

I tried to execute following command:

$ convert 1.png -filter 'Jinc ( +clone -negate -morphology Distance Euclidean -level 50%,-50% )' -morphology Distance Euclidean -compose Plus -composite -level 43%,57% -resize 12.5% 1.png

It gives me:

convert: no images defined `1.png' @ error/convert.c/ConvertImageCommand/3187.

but it is exists! I tried to execute that command with the debug option enabled:

$convert 1.png -filter 'Jinc ( +clone -negate -morphology Distance Euclidean -level 50%,-50% )' -morphology Distance Euclidean -compose Plus -composite -level 43%,57% -resize 12.5% 1.png -debug all

I get this output: http://pastebin.com/gsw7KszH

What's wrong with my ImageMagick's configuration? I use the latest macOS.

like image 271
JavaRunner Avatar asked Nov 20 '22 03:11

JavaRunner


1 Answers

You can try specifying the filename after the composite operator, something like this:

$ convert 1.png \
   -filter 'Jinc ( +clone -negate -morphology Distance Euclidean -level 50%,-50% )' \
   -morphology Distance Euclidean \
   -compose Plus \
   -composite 1.png \
   -level 43%,57% \
   -resize 12.5% 1.png
like image 145
Nehal J Wani Avatar answered Dec 26 '22 21:12

Nehal J Wani