I'm trying to identify image dimensions from a url without downloading the whole image. I read that using imageMagick it can be done through a function called identify.

How can I use this function using python? In python I have both wand and magickwand installed. When I'm importing into the file, I'm not really sure where that function is located (or the equivalent).

Import code (none of these provide the function):

from wand.image import Image
from magickwand.api import functions

Thanks for the help

有帮助吗?

解决方案

imagemagick's identify needs the file, you can't detect the image size without downloading the image.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top