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

Add Image.ping method #425

Closed
3 tasks done
emcconville opened this issue Jul 18, 2019 · 4 comments
Closed
3 tasks done

Add Image.ping method #425

emcconville opened this issue Jul 18, 2019 · 4 comments
Labels
Milestone

Comments

@emcconville
Copy link
Owner

@emcconville emcconville commented Jul 18, 2019

Allow image-headers to be read without decoding image data.

@emcconville
Copy link
Owner Author

@emcconville emcconville commented Jul 18, 2019

Tagging @fmw42 for visibility.

@fmw42
Copy link

@fmw42 fmw42 commented Jul 18, 2019

Thanks.

@emcconville emcconville added this to the Wand 0.5.6 milestone Jul 18, 2019
@emcconville
Copy link
Owner Author

@emcconville emcconville commented Jul 18, 2019

Switch this to a class method. The format is as follows..

from wand.image import Image

with Image.ping(filename='zelda.png') as img:
    print(img.size)
    print(dict(img.artifacts.items()))

Accepts format for working with file & blob parameters, and resolution for PDF/vector formats.

@fmw42
Copy link

@fmw42 fmw42 commented Jul 18, 2019

Great! Thanks

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

Successfully merging a pull request may close this issue.

None yet
2 participants