-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
MagickImage.Read() should raise an exception when specifying an invalid FrameIndex #813
Comments
This looks like a "duplicate" of what was requested in #268 |
Thanks for a fast response! There are two parts to this, and, yes, I agree that the 'fast pagecount' is a duplicate, as you say. However, this bug is about the object being disposed when (IMO :) ) it ought to raise an exception instead. |
Can you share the PDF file so I can reproduce it? |
In this example, any pdf with fewer than 42 pages will do. For example, this one |
I am unable to reproduce your issue. Is it possible to create a small sample project with a DockerFile that uses |
Thanks again! On mac catalina 10.15.7, however, I observe this behavior. |
Is it possible to reproduce the issue in GitHub actions? p.s. Getting a fast page count will become available in the next release. |
I'll look into creating a GHA to build on mac |
We made some changes in the PDF reading, can you give it another try with the latest release @martinkoch-geniebelt? And I would advise you to use the new |
First, thanks for maintaining this - it's great!
Prerequisites
Description
When trying to read a specific frame past the last frame from e.g. a PDF, a
MagicImage
is disposed, andis written on stdout.
Instead, I think an exception should be raised so that this situation can be dealt with in a nicer way than the sample below.
An additional nice-to-have would be a fast way of determining the number of pages in a PDF without having to load the whole thing :)
System Configuration
ios, linux.
The text was updated successfully, but these errors were encountered: