it's been a while I try to find an answer to my problem: make dynamically by my dedicated server a preview like the Imandix software, http://www.imandix.com/.
I have an example:
src image
preview image generetad thanks to Imandix
I read all topics related to that and I can do that
take the different part of my orignal picture
Code: Select all
convert img.jpg -gravity East -chop 860x0 back.jpg
convert img.jpg -gravity East -chop 759x0 -gravity West -chop 759x0 spine.jpg
convert img.jpg -gravity West -chop 841x0 front.jpg
Code: Select all
convert back.jpg -matte -virtual-pixel transparent -distort Perspective '0,0 60,76 0,1057 60,900 739,1057 626,910 739,0 626,62' back_cover.png
convert spine.jpg -matte -virtual-pixel transparent -distort Perspective '0,0 0,7 0,1057 0,892 81,1057 43,907 81,0 43,0' spine_cover.png
convert front.jpg -matte -virtual-pixel transparent -distort Perspective '0,0 0,0 0,1057 0,907 758,1057 551,859 758,0 551,47' front_cover.png
I can't do a merge of all files to have my final picture (for the moment I have a file to do the shadow but I would prefer to do that directly with IM).
Thanks for your help
Edit: my final image must be in png for using transparency.