If compiled with HDRI, resize generate wrong images, with differ filters (Magick::FilterTypes) differ wrong image.
Tested at windows via API C++, and from convert utility.
If complies w/o HDRI all ok.
Resize with IM-6.9.2 with HDRI, wrong images
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Resize with IM-6.9.2 with HDRI, wrong images
I am not sure what your problem is? Is it the compile or the resulting image sizes? If the sizes, then post your command line using convert and upload your image to dropbox.com and put the URL here. I can test it then (on Mac OSX)lexxai wrote:If compiled with HDRI, resize generate wrong images, with differ filters (Magick::FilterTypes) differ wrong image.
Tested at windows via API C++, and from convert utility.
If complies w/o HDRI all ok.
Re: Resize with IM-6.9.2 with HDRI, wrong images
compiling ok. problem with use.
C++
Source https://picasaweb.google.com/lh/photo/k ... directlink
Result https://picasaweb.google.com/lh/photo/y ... directlink
or can use
C++
Code: Select all
Magick::Geometry og=Magick::Geometry(wScale,hScale).percent(true);
Magick::FilterTypes filter;
if (filterType=="Point") filter=Magick::PointFilter;
else if (filterType=="Box") filter=Magick::BoxFilter;
else if (filterType=="Triangle") filter=Magick::TriangleFilter;
else if (filterType=="Hermite") filter=Magick::HermiteFilter;
try{
image.filterType(filter);
image.resize(og);
}
catch (Magick::Exception &error_) {
qDebug()<<QString("ImageMagick::resize %1").arg(error_.what());
}
Result https://picasaweb.google.com/lh/photo/y ... directlink
or can use
Code: Select all
convert.exe 000007.jpg -filter Box -resize 200x result.jpg
Version: ImageMagick 6.9.2-0 Q32 x64 2015-09-16 http://www.imagemagick.org
Features: Cipher DPC HDRI Modules OpenCL
Re: Resize with IM-6.9.2 with HDRI, wrong images
Can you test if disabling OpenCL resolves your issue?
Re: Resize with IM-6.9.2 with HDRI, wrong images
You are right.
In this configurations (Q32 x64 HDRI, Q32 x64 HDRI OpenMP, Q32 x64 OpenCL OpenMP) all work ok.
Need rename topic. Problem combination HDRI with OpenCL.
Code: Select all
Version: ImageMagick 6.9.2-0 Q32 x64 2015-09-16
Features: Cipher DPC HDRI Modules
Code: Select all
Version: ImageMagick 6.9.2-0 Q32 x64 2015-09-16
Features: Cipher DPC HDRI Modules OpenMP
Need rename topic. Problem combination HDRI with OpenCL.
Re: Resize with IM-6.9.2 with HDRI, wrong images
We are working on a fix for re-sizing with OpenCL and HDRI enabled. I will get back to this topic when we know more.
Re: Resize with IM-6.9.2 with HDRI, wrong images
tested x64 Q32 IM-7.0.4-4 have still conflict if feature HDRI and OpenCL used both.
magick.exe in.jpg -brightness-contrast +20 res1.jpg
magick.exe in.jpg -brightness-contrast +20 res1.jpg