Filters not being applied during a resize operation
"Steven Bakhtiari" <[email protected]> Wed, 15 Feb 2012 17:19:52 -0000
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <5311D057033B204C99839A152F59B8BE07ED6C2F@bbcxues12.national.core.bbc.co.uk> |
Hi all,
This post may be more appropriate for some other mailing list, if so,
please let me know.
We have a small wrapper application that utilises the GraphicsMagick lib
to perform a bunch of operations on images requested via HTTP. Using our
tool, I discovered that filters weren't being applied to the resized
images, so I decided to investigate.
My first port of call was to try using the GM CLI tool in an attempt to
replicate the problem. I found that when passing the filter flag after
the resize flag, the filter wasn't being applied. Placing the filter
flag before the resize flag produces the expected result. Knowing this,
I decided to take a look at the source code to our tool, but as it's a
pretty simple wrapper, it just makes standard use of the API; It makes a
call to:
MagickResizeImage(MagickWand *,const unsigned long,const unsigned long,
const FilterTypes,const double)
So now I'm at a loss... I'm guessing that the GM CLI tool makes a very
similar call, so I'm not sure why it would make a difference in which
order the filter flag is passed. I'm not sure how to proceed (I don't
know C that well), so any suggestions would be very much appreciated.
Kind regards,
Steven
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Graphicsmagick-apis mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-apis