Getting the image size?

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Реакции
26
Баллы
28
Is there a way to get the size of an image in my folder? I need both the height & width in pixels.

Thanks.
 
use imagemagic
convert infle -ping -format "%w" info:
or c#
var size = System.Drawing.Image.FromFile(filepath).Size;
 
  • Спасибо
Реакции: peter и shabbysquire
Thank you LW. More tricks to get the job done!
 
how can I put var size from c to zennoposter variable?
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)