Page 1 of 1

[SOLVED]: Error Image.read JPG

Posted: 2019-06-26T06:27:07-07:00
by Portiella
Hi,

Use magick ++ for years without problems but lately I find jpg that gives error when reading.

http://asgbit.com/descargas/9781742202860.jpg

I have tried with IMDisplay.exe and it gives error.
other applications works perfectly.

What happens?
Thx

Re: Error Image.read JPG

Posted: 2019-06-26T06:41:33-07:00
by snibgo
What version of IM, on what platform?

What error is reported?

At the command line, with IM v6.9.9-50 and v7.0.7-28 on Windows 8.1, I get no errors for that image.

Re: Error Image.read JPG

Posted: 2019-06-26T07:34:56-07:00
by Portiella
IM 7.0.8 on Windows 10, compiled Visual Studio 2017.
Error my exe:
C:\...... @ error/jpeg.c/JPEGErrorHandler/333

Error in IMDisplay.exe tool:
IMDisplayDoc function [DoReadImage] reported an error.
IMDisplay.exe: Improper call to JPEG library in state 201
'C:\.......' @ error/jpeg.c/JPEGErrorHandler/333

Re: Error Image.read JPG

Posted: 2019-06-26T10:27:25-07:00
by Portiella
with IM 7.0.8-50 works perfectly.

Thx

Re: Error Image.read JPG

Posted: 2019-07-27T02:22:46-07:00
by hddsdd
Portiella wrote:
2019-06-26T07:34:56-07:00
IM 7.0.8 on Windows 10, compiled Visual Studio 2017.
Error my exe:
C:\...... @ error/jpeg.c/JPEGErrorHandler/333

Error in IMDisplay.exe tool:
IMDisplayDoc function [DoReadImage] reported an error.
IMDisplay.exe: Improper call to JPEG library in state 201
'C:\.......' @ error/jpeg.c/JPEGErrorHandler/333
how do you use ImageMagick in Visual Studio 2017? I couldn't use.
https://www.imagemagick.org/discourse-s ... 23&t=36441

Re: [SOLVED]: Error Image.read JPG

Posted: 2020-02-11T23:54:58-07:00
by Necuima
I am getting either this error or a similar one with Magick++ trying to read a jpg file. Using VS2019 the script compiles and links OK but gives a catch error "unable to open image (unreadable): invalid argument @ error/blob.cOpenBlob/3315". The version of Image Magick installed is 7.0.7-11 Q16 x64 2017-11-12 under Windows 10 with all headers and legacy. This same file opens perfectly with the ImageMagick IMDisplay and also opens perfectly with the corresponding Imagick extension for PHP. I get the same error with other jpg files, all of which open perfectly as described above, so it does not appear to be an issue with that particular jpg image file. Also, this same C++ script works OK with an install via ImageMagick 7.3.5-1 however that version has an issue with MariaDB permissions. I can only install versions where my XAMPP/PHP, Imagick and ImageMagick all line up.

Any help / advice will be most appreciated and thank you in anticipation.

Re: [SOLVED]: Error Image.read JPG

Posted: 2020-02-11T23:57:50-07:00
by Necuima
Sorry, the 'lined-up' version between XAMPP/PHP/Imagick and ImageMagick has the MySQL permissions problem - oops!