Wrapping effect using Imagick

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 »

Are you on Windows or some Unix system (Linux, Mac OSX etc)? If on Unix, then it is likely easier to use my script, since you do not need to make the displacement map or the lighting map manually.
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Re: Wrapping effect using Imagick

Post by alexlsg »

It's UNIX, but I will have to make many maps for different scenarios: mug, boxes, t-shirts, wine bottle, etc.

So that is why I want to be able to create the map on Photoshop, and then just upload is as a layer and set as displcamanet
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Re: Wrapping effect using Imagick

Post by alexlsg »

Also, do you know if this map would work on a SVG displacement filter?
Last edited by alexlsg on 2016-08-17T16:35:17-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 »

alexlsg wrote:Also, do you know if this map would work on a SVF displacement filter?
I do not know anything about this.
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Re: Wrapping effect using Imagick

Post by alexlsg »

SVF = SVG (corrected)

; )
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 »

alexlsg wrote:It's UNIX, but I will have to make many maps for different scenarios: mug, boxes, t-shirts, wine bottle, etc.

So that is why I want to be able to create the map on Photoshop, and then just upload is as a layer and set as displcamanet

I have cylinderize and cylinderizewarp for cylindrical objects such as coffee cups and bottles.

I also have tshirt and tshirtwarp for tshirts.

There is some adjustment needed for cylinderize and tshirt to get the alignment. But you do not have to build the displacement map nor the lightning map.

But there are many ways to handle the tasks. Snibgo has shown you some more manual ways to proceed.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 »

fmw42 wrote:
alexlsg wrote:Also, do you know if this map would work on a SVF displacement filter?
I do not know anything about this.
I do not know what an SVG displacement filter is? Is it the displacement map stored as an SVG file? If it is an SVG file, then it can be used or converted to an image for a displacement map provided its structure conforms to the way IM needs its displacement maps. That is either two single channel images - one for x and one for y. Or one 3 channel image with x,y in the red and green and blue=black channels.
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Re: Wrapping effect using Imagick

Post by alexlsg »

Yep fred, your script are insane!

But I need a simple workflow to setup in Photoshop (because it's the only tool I know) and then just upload it. For me is not a problem to create it manually in PS.

What I wanted to know is that if I created the map correctly, according with the directions Snibgo gave me.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 »

Snibgo will have to answer you.

If you are using PS, why not do it all in PS? Why do you need IM?
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Re: Wrapping effect using Imagick

Post by alexlsg »

Cool, thanks!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 »

See edited post above.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 »

Also why Imagick and not Imagemagick?
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Re: Wrapping effect using Imagick

Post by alexlsg »

Yep, you are right. Now I am going towards to make everything in PS, export as layers and do the effects (blend modes, displacement) with web filters
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Wrapping effect using Imagick

Post by snibgo »

SVG displacement maps are shown at http://www.w3.org/TR/2007/WD-SVGFilter1 ... MapElement . They correspond to ImageMagick relative displacement maps (rather than absolute displacement maps). Either form can be easily and quickly converted to the other form.

I don't currently have the bandwidth to view your animations of Photoshop.

As a first worked example, I suggest you start with my "Coffee mug" page. Use one of the coffee mug images from that page. When that works, you can use the same process on any object you want.
snibgo's IM pages: im.snibgo.com
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Re: Wrapping effect using Imagick

Post by alexlsg »

Thanks Snigbo, will make a displacement map on Photoshop for your '"Coffee mug" and send the results here.

I have a developer working on the SVG filter, so I need to make sure the map is correct so he can properly test his filter implementation.

If you can provide feedback if the Map is correct, I would be super grateful! ; )

thanks again
Post Reply