pyexiv2 access to pixelWidth and pixelHeight accessors?

Bug #379270 reported by Matt Mossholder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyexiv2
Fix Released
Wishlist
Olivier Tilloy

Bug Description

I would be really handy if pyexiv2 could provide access to Exiv::Image::pixelWidth and Exiv::Image::pixelHeight. As things stand, I need to import PIL to get the resolution of an image, if it doesn't have any EXIF tags.

Thanks!

Related branches

Olivier Tilloy (osomon)
Changed in pyexiv2:
assignee: nobody → Olivier Tilloy (osomon)
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Matt Mossholder (matt-mossholder) wrote :

I've created the attached patch, which covers pixelWidth, pixelHeight, and mimeType. I'm new to both python and C++, so any comments would definitely be appreciated. It seems to work as expected on my system.

Revision history for this message
Olivier Tilloy (osomon) wrote :

I didn't try it out, but had a quick look at the code itself, and it looks fine.
I'll integrate it in the 0.2 branch.

Changed in pyexiv2:
milestone: none → 0.2
Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks for the patch Matt!

Changed in pyexiv2:
status: Triaged → Fix Committed
Olivier Tilloy (osomon)
Changed in pyexiv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.