Á¦ÀÛ

¼öµ¿ ¼¶³×ÀÏ ÀÚ¸£±â°¡ÀÖ´Â Django À̹ÌÁö Çʵå
Áö±Ý ´Ù¿î·Îµå

Á¦ÀÛ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • BSD License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Yuri Voronkov
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/websuslik/

Á¦ÀÛ Å±×


Á¦ÀÛ ¼³¸í

JIMAGE´Â ¼öµ¿ ¼¶³×ÀÏÀÌÀÖ´Â DJango À̹ÌÁö ÇʵåÀÔ´Ï´Ù. instalation-pip ¼³Ä¡ https://github.com/websuslik/jimage/zipball/master- ¼³Ä¡µÈ Apps - URL Ãß°¡ (R '^ SAVE_CROP /')¿¡ 'JIMAGE'Ãß°¡ 'JIMAGE.Views.save_crop', URL ½ÇÇà Python Manage.py CollectAtaticsettingSimage_sizes = { 'square': { 'size': (400, 400), '¸Þ¼Òµå': 'ÀÚ¸£±â'}, 'ºò': { 'size': (600, 400), 'method': 'Å©±â Á¶Á¤'}, 'Anower : {'size ': (¾øÀ½, 400),'¸Þ¼Òµå ':'Å©±â Á¶Á¤ ','Å©±â Á¶Á¤ '¹æ¹ýÀ» »ç¿ëÇÏ´Â °æ¿ì # , ³Êºñ ¶Ç´Â ³ôÀ̸¸ ÀÔ·Â ÇÒ ¼ö ÀÖ½À´Ï´Ù} convert_path = '/ usr / local / bin / cover'#path µµ±¸¸¦ º¯È¯ÇÕ´Ï´Ù. ±âº» 'convert'UsageFrom django.db °¡Á® ¿À±â modelsfrom jimage.fields imageFieldClass Ç׸ñ °¡Á® ¿À±â (models.model) : ÅÛÇø´ÀÇ image = imagefield (upload_to ='image / % y / % m / % d / % y / % m / % d / % y / % m / % d / % y / % m / % d / % y / % m / % d / % y / % m / % d / % y / % m / % d / % y / % m / % d / % y / % m / % d / % y / % m / % d / % y / % m / % d / %) {Object.Image.foo_URL}}} '/> images_sizeProductÀÇ È¨ÆäÀÌÁöÀÇ Ãà¼ÒÆÇÀÇ À̸§À» ÃÔ¿µ ÇÑ °æ¿ì


Á¦ÀÛ °ü·Ã ¼ÒÇÁÆ®¿þ¾î