Matthew H
Matthew H

Reputation: 5879

Google app engine images API - get image size

How can I get the size of an image transformed with the app engine images API?

Note: I mean the size in bytes, not the dimensions.

Upvotes: 0

Views: 808

Answers (1)

Matthew Flaschen
Matthew Flaschen

Reputation: 284786

execute_transforms returns a str (bytestring), so you can just call len(image_str).

Upvotes: 4

Related Questions