вторник, 15 октября 2013 г.

Конвертирование изображений

Everpix + python + ImageMagik


Wand -- Python Binding for ImageMagik
http://stackoverflow.com/questions/7895278/can-i-access-imagemagick-api-with-python

и немного на русском
http://blog.xxblx-duke.com/?e=62

Оперируем с ImageMagick из командной строки

To preserve aspect ratio:
convert -resize 600x600 screen.jpg:
  • 1920x1200 => 600x375
  • 600x1200 => 300x600
  • 150x300 => 300x600
  • 300x150 => 600x300
convert -resize 600x600\> screen.jpg:
  • 1920x1200 => 600x375
  • 600x1200 => 300x600
  • 150x300 => 150x300 (is not resized to bigger size)
  • 300x150 => 300x150 (is not resized to bigger size)

Everpix

Troubleshooting missing photos in Everpix
What kind of photos get imported to Everpix?
Everpix currently only imports photos that match these criteria:

  • In JPEG format i.e. no TIFFs or RAWs
  • Using RGB color model i.e. not grayscale or CMYK
  • At least 480 pixels on the smallest dimension but less than 15,000 pixels on the largest dimension
  • With an aspect ratio less than 10


Troubleshooting missing photos in Everpix

Комментариев нет: