Re: How do you get image size without decompressing the image

16 views
Skip to first unread message

Pascal Massimino

unread,
Oct 20, 2016, 3:10:09 AM10/20/16
to WebP Discussion
Hi,

On Wed, Oct 19, 2016 at 7:41 AM, <webm...@primalpictures.com> wrote:
Is there a commandline tool or something one could do in python to read a webp image size without having to first decompress it to a more standard format?

You can use 'webpmux -info file.webp'

This will print the dimensions of the webp file as 'Canvas size: <width> x <height>'

Hope it helps,
skal/

I have several thousand images I need to check the size of and having to convert the files first is going to be incredibly slow.

 

webm...@primalpictures.com

unread,
Oct 20, 2016, 4:28:19 AM10/20/16
to WebP Discussion
Marvellous, thanks!
Reply all
Reply to author
Forward
0 new messages