سؤال

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