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: 22109
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 » 2016-08-17T16:26:58-07:00

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 » 2016-08-17T16:29:27-07:00

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 » 2016-08-17T16:30:12-07:00

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: 22109
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 » 2016-08-17T16:33:27-07:00

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 » 2016-08-17T16:35:39-07:00

SVF = SVG (corrected)

; )

User avatar
fmw42
Posts: 22109
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 » 2016-08-17T16:36:09-07:00

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: 22109
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 » 2016-08-17T16:38:33-07:00

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 » 2016-08-17T16:39:33-07:00

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: 22109
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 » 2016-08-17T16:44:02-07:00

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 » 2016-08-17T16:44:34-07:00

Cool, thanks!

User avatar
fmw42
Posts: 22109
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 » 2016-08-17T16:45:03-07:00

See edited post above.

User avatar
fmw42
Posts: 22109
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Wrapping effect using Imagick

Post by fmw42 » 2016-08-17T16:45:38-07:00

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 » 2016-08-17T16:58:09-07:00

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: 9404
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Wrapping effect using Imagick

Post by snibgo » 2016-08-17T17:27:52-07:00

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 » 2016-08-17T17:32:48-07:00

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