Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top