I am confused with a long Query:
Code: Select all
convert original.jpg
-resize 1024x683 resized_original.jpg
-size 1024x768 xc:#e3d4ef background_color.jpg -gravity northwest
-composite original_on_background.jpg
-crop 256x256 -quality 60 original_on_background.jpg mytiles%02d.jpg
Resize the original image:
Code: Select all
convert -resize 1024x683 resized_original.jpg
Code: Select all
convert -size 1024x768 xc:#e3d4ef background_color.jpg
Code: Select all
convert -gravity northwest -composite original_on_background.jpg
Code: Select all
convert -crop 256x256 -quality 60 original_on_background.jpg mytiles%02d.jpg
But when I put together the 4 queries it doesent work.
The original_on_background.jpg ist not what it sholud be. I don't understad what happend exactly.
Mabe it is not possible to work with such big queries.
Mabe i need to run each query in a single way.
(I run the query in PHP: exec(my-query). I think, it is better to run one query than four. Isn't it?)
Aperciate any help, I would like to understand....
Schorsch