Modifiy shadow on polaroid effect

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?".
Post Reply
joss.eve

Modifiy shadow on polaroid effect

Post by joss.eve »

Hello everyone,

I would like to know if it is possible to enlarge the shadow effect "polaroid" in proportion to the size of the image?
I use the technical methode for reduce bluring in my caption text, but the sequence of increase-decrease, destruct the final effect...
so there's there a solution?

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

Re: Modifiy shadow on polaroid effect

Post by fmw42 »

For best help, you probably should supply an example and the exact command line(s) used.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Modifiy shadow on polaroid effect

Post by anthony »

The shadow size is currently fixed :-(

This also becomes a problem when you what to use 'super-sampling' to improve the quality of the image/font. Especially as internally it uses the 'sheared' -rotate method for image rotation.

NOTE also that the shadow is generated before the rotation due to the way the 'curl' is applied to the image.

Polaroid was originally developed by the RMagick (ruby language) coordinator, Timothy Hunter. See his page at
http://rmagick.rubyforge.org/Polaroid/polaroid.html
also look at IM Examples use of polaroid (and the super-sampling technique)
http://www.imagemagick.org/Usage/transform/#polaroid
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
joss.eve

Re: Modifiy shadow on polaroid effect

Post by joss.eve »

thanks
I have see the info about this in a doc, for inconvenience technique of super-sample i do make manually the polaroid effect. I work with PHP, I do not know the interaction with Ruby scripts and I do not RMagick installed on my server, but imagemagick.
so :(
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Modifiy shadow on polaroid effect

Post by anthony »

Until such time as someone updates polaroid to allow the use of extra arguments for the shadow sigma (size), and perhaps even the curl size, then I am sorry but you will have to DIY it. The details on how polaroid is generated is all there online at the pointers I have given.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply