Need help converting 3d Cover!

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Need help converting 3d Cover!

Post by fmw42 »

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Need help converting 3d Cover!

Post by anthony »

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
This is where image mapping comes in.

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/
ecoverguru
Posts: 37
Joined: 2010-10-12T12:42:53-07:00
Authentication code: 8675308

Re: Need help converting 3d Cover!

Post by ecoverguru »

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.
Post Reply