| Àå°í - ºñµð¿À ÅÚ·¹ºñÀü ºñµð¿Àµµ ½æ³×ÀÏÀÌ ÇÊ¿äÇÕ´Ï´Ù |
Áö±Ý ´Ù¿î·Îµå |
Àå°í - ºñµð¿À ÅÚ·¹ºñÀü ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Chris McMichael
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/macmichael01/
Àå°í - ºñµð¿À ÅÚ·¹ºñÀü ű×
Àå°í - ºñµð¿À ÅÚ·¹ºñÀü ¼³¸í
Django-Videothumbs´Â ÀÚµ¿À¸·Î ºñµð¿À Ãà¼ÒÆÇÀ» »ý¼ºÇÏ´Â Django ¾ÛÀÔ´Ï´Ù. ³ëÆ® : ÀÌ°ÍÀºÀÌ ½ÃÁ¡¿¡¼ °³³äÀÇ Áõ°ÅÀÔ´Ï´Ù. ¾ÆÁ÷ »ý»ê ¼³Á¤¿¡¼ »ç¿ëÇÏÁö ¾Ê´Â °ÍÀÌ ÁÁÁö ¾Ê½À´Ï´Ù .RequirementsPIP ¼³Ä¡ Django == 1.3 # ¶Ç´Â NewerPIP ¼³Ä¡ PIL # ffmepg (µ¥ºñ¾È) sudo apt-get ffmpeg # mac # ffmpegx¸¦ ´Ù¿î·ÎµåÇÏ°í ¼³Ä¡ ¹æ¹ý¿¡ ´ëÇÑ ÁöħÀ» µû¸£½Ê½Ã¿À. # ±×¶§ ±×·³ Symlink Å͹̳Π½©ÀÌ IT.SUDO LN -S / APPLICATIONS/FFMPEGX.APP/CONTENTS/RESOURCES/FFMPEG / USR / LOCAL / BIN / ¼³Ä¡ ÆÑÆ® ¼³Ä¡ Django-VideothumbsOrdit Clone https://github.com/ MacMichael01 / Django-Videothumbs; CD Django-Videothumbs; sudo python setup.py ¼³Ä¡; »ç¿ë Àμö : ºñµð¿À ¹× Ãà¼ÒÆÇÀ» ÀúÀåÇÒ °æ·Î¸¦ upload_to path·Î ÀúÀåÇÕ´Ï´Ù. Á¤ÀÇ °æ·Î¿¡´Â 2 °³ÀÇ ÇÏÀ§ Æú´õ, Ãà¼ÒÆÇ ¹× ºñµð¿À°¡ Æ÷ÇԵ˴ϴÙ. Å©±â¿Í ³ôÀÌ ÁÂÇ¥°¡ Æ÷ÇÔ µÈ Æ©Çà ¸ñ·ÏÀÌ ºñµð¿À ÇÁ·¹ÀÓÀÇ Å©±â¸¦ Á¦°øÇÕ´Ï´Ù. AUTO_CROP ¼¼´ë Áß¿¡´Â Ãà¼ÒÆÇÀÇ ³ôÀÌ¿Í ³Êºñ°¡ µ¿ÀÏÇÑ °æ¿ì ÀÚ¸£±â ¿É¼ÇÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ±âº»ÀûÀ¸·Î true. °Ë»ö : ºñµð¿À URLÀ» °Ë»öÇÏ·Á¸é my_object.video.url ½æ³×ÀÏÀ» °Ë»öÇÏ·Á¸é URLÀ» °Ë»öÇÏ·Á¸é my_object.video.url_125x125 my_object.video.url_300x200 Videothumbs.Fields °¡Á® ¿À±â VideothumbNailfield Ŭ·¡½º homevideo (models.model) : Video = VideoThumbNailfield ( upload_to = 'home_videos', Å©±â = ((80,80),) Á¦Ç° ȨÆäÀÌÁö
Àå°í - ºñµð¿À ÅÚ·¹ºñÀü °ü·Ã ¼ÒÇÁÆ®¿þ¾î