[SOLVED]: Error Image.read JPG

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Portiella
Posts: 25
Joined: 2018-12-05T07:30:35-07:00
Authentication code: 1152

[SOLVED]: Error Image.read JPG

Post 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
Last edited by Portiella on 2019-06-26T10:28:43-07:00, edited 2 times in total.

snibgo
Posts: 12931
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Error Image.read JPG

Post 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.
snibgo's IM pages: im.snibgo.com

Portiella
Posts: 25
Joined: 2018-12-05T07:30:35-07:00
Authentication code: 1152

Re: Error Image.read JPG

Post 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

Portiella
Posts: 25
Joined: 2018-12-05T07:30:35-07:00
Authentication code: 1152

Re: Error Image.read JPG

Post by Portiella »

with IM 7.0.8-50 works perfectly.

Thx

hddsdd
Posts: 2
Joined: 2019-07-27T02:01:36-07:00
Authentication code: 1152

Re: Error Image.read JPG

Post 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

Necuima
Posts: 7
Joined: 2014-01-18T23:43:40-07:00
Authentication code: 6789

Re: [SOLVED]: Error Image.read JPG

Post 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.

Necuima
Posts: 7
Joined: 2014-01-18T23:43:40-07:00
Authentication code: 6789

Re: [SOLVED]: Error Image.read JPG

Post by Necuima »

Sorry, the 'lined-up' version between XAMPP/PHP/Imagick and ImageMagick has the MySQL permissions problem - oops!

Post Reply