On Sep 22, 2006, at 10:43 PM, Anthony Thyssen wrote:
Timothy Hunter on wrote...
|
| On Sep 16, 2006, at 8:03 AM, Anthony Thyssen wrote:
|
| > Timothy Hunter on wrote...
| > | > As all you are doing is a slight bend in the picture. then
| > | > you can just use -wave.
| > | >
| > | > However -wave only works in the displacement in the Y
direction.
| > | > And in your case can add lots of extra space.
| > | >
| > | > To fix, rotate your picture 90 degrees (no loss of quality)
| > | > run it through wave (some quality loss, to be expected)
| > | > crop the unwanted space, and rotate back (or visa-versa).
| > | >
| > | Thanks, Anthony. I thought about wave but I was afraid that
the two
| > | rotations would cause me to end up with a bad-looking image. I'm
| > glad
| > | to hear that it won't.
| >
| > Enjoy.. let me know how you go and your final usage.
|
| I figured out how to get the effect I was shooting for and wrote an
| article it. Per your advice it uses wave to put the bend in the
| image. The article is here: http://rmagick.rubyforge.org/Polaroid/
| polaroid.html. I used Ruby and RMagick. I'm sure there's a command-
| line-only approach as well, but it's beyond my shell-scripting
skills.
I do not think you need a VirtualPixelMethod for the wave function,
just setting the background to none I think was enough, but then I may
be wrong.
No, you're right. I removed the method call and updated the article
accordingly. Thanks for the tip!
However you may like to look at the new "interpolation" setting
This defines how the colors will be desided from one image to another.
EG: the color for the new image comes from a point between two pixels
in the old image, how do you determine the 'interpolated color result.
I've been looking at it. There'll be something in the next release of
RMagick. I'd like to make interpolation work with image "views",
which is the closest thing RMagick has to the -fx option. That is, in
RMagick a view is a rectangle of an image in which you have access to
individual pixels and channels so you can do arithmetic on them. It
would be nice for the interpolation setting to work the same way it
works with -fx. Still thinking.
Neat idea for expanding the shadow with an oppisite curl, though the
final shadow will not be exactly correct after the image is rotated.
I am not certian how that should be fixed however.
The curl is also a very nice idea for single images, but if you want a
shack of images, a curl may not be a good idea.
Question why a bluish tint to the border?
Judgement call. A plain gray made the border look dirty. The blue-
gray makes it look (imo) white, but not the same white as the
background. I probably should've used #e8e8f0 instead of #f8f8ff,
though. It would show up better on my Mac display.
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users