Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad interlace scheme reported #488

Closed
claudep opened this issue Jul 2, 2020 · 8 comments
Closed

Bad interlace scheme reported #488

claudep opened this issue Jul 2, 2020 · 8 comments
Assignees
Labels
Milestone

Comments

@claudep
Copy link

claudep commented Jul 2, 2020

I have a JPEG image with interlaced mode:

$ convert 20200608_114135000_ios_1.jpg -verbose info:
...
Interlace: JPEG
...

However with wand:

>>> from wand.image import Image
>>> im = Image(filename='20200608_114135000_ios_1.jpg')
>>> im.interlace_scheme
'no'
@emcconville
Copy link
Owner

emcconville commented Jul 2, 2020

Can you post the output of the following command?

python -mwand.version --verbose

@claudep
Copy link
Author

claudep commented Jul 2, 2020

Wand 0.6.1
ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org

@emcconville
Copy link
Owner

emcconville commented Jul 2, 2020

Wand seems to be working as expected. Taking a look at JPEG coder, and I can see Interlace defaulting to JPEG if progressive decoding is not available, or jpeg lib is slightly behind. I can only see this being an issue if your are using a package manager to install jpeg library.

@claudep
Copy link
Author

claudep commented Jul 2, 2020

So who's right, convert command line or wand?

@emcconville
Copy link
Owner

emcconville commented Jul 6, 2020

Ah! I think I found the cause & confusion.
The interlace_scheme property is pointing to the wand stack, and not the image in the stack.
This should be fixed shortly.

@claudep
Copy link
Author

claudep commented Jul 6, 2020

Thanks a lot for fixing this!

@emcconville
Copy link
Owner

emcconville commented Jul 6, 2020

Happy to help. If your able to test the master branch & verify the fix, I should be able to release 0.6.2 with in the next few days.

@emcconville emcconville added this to the Wand 0.6.2 milestone Jul 6, 2020
@emcconville emcconville added the bug label Jul 6, 2020
@emcconville emcconville self-assigned this Jul 6, 2020
@claudep
Copy link
Author

claudep commented Jul 6, 2020

Yes, I can confirm the interlace_scheme previously returning 'no' is now returning 'jpeg'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants