Use parenthesis processing, clones (if needed) to combine the commands and use -write to save the other images.
see
http://www.imagemagick.org/Usage/basics/#image_seq
http://www.imagemagick.org/Usage/basics/#seq_combine
Need help converting 3d Cover!
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Need help converting 3d Cover!
This is where image mapping comes in.ecoverguru wrote:Hello Anthony, I am looking into this option of lighting mask, I am sure we will be able to tweak it further to get more realistic output. I will update with the final output.
Now, my concern is the server resources. So far I have about 9 convert commands, I guess they can be merged together? but the issue is, I need to save several outputs as well
At all the distort commands can be compressed into a X,Y distortion map, just by applying them to a X and Y gradient image. The transparency mask is just that a straight mask, and lighting just another greyscale image.
All 4 effects images are greyscale can can be merged and saved as a single RGB image to apply to as many source images as you like using just 3 steps... distort, lighting, and final transparency.
Basically ALL the distortion effects can be compressed down to just 4 steps! (and prehaps one resize for super sampling if aliasing becomes a problem).
However however only black and white colors (or shades of the original image or transparency) can be added to the result using that method. But that seems to be all you are using in any case. If you want to add other colors (like a red ribbon bookmark) then you will need a separate overlay image for that.
I still however think you can use a -wave function on the spine image before you perspective distort it to give it that curve across the whole spine, and not just as a edge masking effect.
Can you give use the original 'book' image, and what you have so far. We can then play with it.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
-
- Posts: 37
- Joined: 2010-10-12T12:42:53-07:00
- Authentication code: 8675308
Re: Need help converting 3d Cover!
Sorry for not giving the update, actually, I got stuck with the another CMS project, so haven't played further on the book cover stuff and kept it going as it is. Will update it once i resume.