Compose into new image
Posted: 2011-05-19T05:28:11-07:00
Hi there! I would like to copy an image into a new, blank image, and overwrite the overlay by the way and canĀ“t get it to work...
Step by step what the command should do:
- create a new image width size 200x200, xc:none
- compose a source image "c:\image.png" onto image at position 10x10
- save as "c:\image.png"
The trick should be not to create a new image in the filesystem, but to create a new blank one on the fly, copy the source image at given position, and save as the source file to overwrite it.
I would like to use this method to add padding to existing images.
This code does not work:
Thanks for any help!
Step by step what the command should do:
- create a new image width size 200x200, xc:none
- compose a source image "c:\image.png" onto image at position 10x10
- save as "c:\image.png"
The trick should be not to create a new image in the filesystem, but to create a new blank one on the fly, copy the source image at given position, and save as the source file to overwrite it.
I would like to use this method to add padding to existing images.
This code does not work:
Code: Select all
C:\Program Files\ImageMagick\convert.exe -size 200x200 xc:none\\ C:\Program Files\ImageMagick\composite.exe -geometry +x+y -compose c:\image.png c:\image.png
Thanks for any help!