ImageMagick v7 development
Posted: 2012-04-22T20:01:48-07:00
The Future of Mogrify (as planned but not yet implemented)....
IMv7 mogrify will produce two solutions to this problem. And either may be used. Mogrify will then allow the use of 'Image List Operators' like -composite. and would even be able to "mogrify" GIF animation files!
The first solution is simple, and could possibly be back ported to IMv6. A -read {image} operator which will be interpreted as a secondary image to load, and not as a 'primary image' to be modified.
For example..
Which will composite the the overlay over each of the given images to process.
The second method is a new syntax. If Imv7 mogrify sees a '--' option on the command line it will treat the first part
as the options to use to process each image, while the images (and only images) are listed after that option.
Further if two '--' options are present the first part will define 'pre-read' settings, while the second part processing options, and the third part the images to process.
Comments on either proposed method welcome.
IMv7 mogrify will produce two solutions to this problem. And either may be used. Mogrify will then allow the use of 'Image List Operators' like -composite. and would even be able to "mogrify" GIF animation files!
The first solution is simple, and could possibly be back ported to IMv6. A -read {image} operator which will be interpreted as a secondary image to load, and not as a 'primary image' to be modified.
For example..
Code: Select all
mogrify -read overlay.png -composite {images_to_process}....
The second method is a new syntax. If Imv7 mogrify sees a '--' option on the command line it will treat the first part
as the options to use to process each image, while the images (and only images) are listed after that option.
Code: Select all
mogrify overlay.png -composite -- {images_to_process}....
Code: Select all
mogrify -define jpeg:size 200x200 -- -thumbnail 100x100 -- {images_to_process}...