ãã¼ã¿åæLTä¼ç¬¬äºåã§çºè¡¨ããéã®è³æã§ãã youtube: https://www.youtube.com/watch?v=jDZwX3jxhK4 conppass url: https://kaggle-friends.connpass.com/event/214854/ github repository: https://github.com/fkubota/bunseki_compe_LT_02
ãã¼ã¿åæLTä¼ç¬¬äºåã§çºè¡¨ããéã®è³æã§ãã youtube: https://www.youtube.com/watch?v=jDZwX3jxhK4 conppass url: https://kaggle-friends.connpass.com/event/214854/ github repository: https://github.com/fkubota/bunseki_compe_LT_02
2012å¹´å ¥ç¤¾ããã¯ã·ãã§ã¤ã³ãã©ã¨ã³ã¸ãã¢ã¨ãã¦æ´»åãã¦ããéäºä¿ä»ãããã¯ãã¼ã ã¯ãã¯ãããã(@harukasan)ãå ¥ç¤¾ä»¥æ¥ãå½¼ã¯ç»åé ä¿¡ã¤ã³ãã©ã«é¢ããç¶ãã¦ãã¾ãã ãµã¼ãã¹éå§å½åã¯ããé害ãèµ·ããã¦ããpixivã®ç»åé ä¿¡ã¤ã³ãã©ãã対çãéããä»ã§ã¯å®å®ããé ä¿¡ãå®ç¾ãã¦ãã¾ãã2014å¹´ã«ã¯ãç»åå¤æã®ããã®Go製ãããã·ãgo-thumberãããªã¼ãã³ã½ã¼ã¹ã¨ãã¦å ¬éãã¡ã«ã«ãªã®ä¹ ä¿é彦æ°ã¨å ±èããæè¡è©è«ç¤¾ãnginxå®è·µå ¥éããªã©ã®å·çã«ãé¢ããã¾ãããç¾å¨ã¯ããããã¤ã³ã¿ã¼ãããã¨ææºããã¡ã«ã«ãªãªã©ã§æ´»ç¨ããã¦ããç»åå¤æã®ã¯ã©ã¦ããµã¼ãã¹ãImageFluxãã®éçºãªã¼ãã¼ã¨ãã¦æ´»åãã¦ãã¾ãã ã¾ãã«ãç»åå¤æã®ä¸çã§æåç·ã«ç«ã£ã¦ããã¯ãããããä»åå½¼ã«ãä¸çæ大è¦æ¨¡ã®ã¤ã©ã¹ãç»åé ä¿¡ã¤ã³ãã©ã®ä¸ã§ãã£ã¦ããåãçµã¿ãèªã£ã¦ããã ããªãããåæè¡ã®ä»ã¨
ãBackground Blurãã¯ç»åã«ç°¡åã«ã¼ãããããããããã©ã°ã¤ã³ã§ããjQueryã®ãã©ã°ã¤ã³ã¨ãã¦æä¾ããã¦ãã¾ããIE6ãªã©å¤ããã©ã¦ã¶ãiOSã®SafariãAndroidã®ãã©ã¦ã¶ãªã©ã¢ãã¤ã«ã«ã対å¿ãã¦ãããã¨ãç¹å¾´ã 以ä¸ã«ä½¿ã£ã¦ã¿ãæ§åãè¼ãã¦ããã¾ããã¾ããBackground Blurãã¸ã¢ã¯ã»ã¹ãã¾ããããå°å ¥æ¹æ³ã¯ãã©ã°ã¤ã³ããã¦ã³ãã¼ããã¦CSSã¨ã¼ããã®è¨å®ãããã ãã ãµã³ãã«ãæ示ããã¦ãã¾ããããã®ããã«ç»åã«å¯¾ãã¦ã¼ããããªã¢ã«ã¿ã¤ã ã«ããããã¨ãã§ãã¾ããIE6ãªã©å¤ããã©ã¦ã¶ã¯ã¼ããã¨ãã®ã¢ãã¡ã¼ã·ã§ã³ãå¹ãã¾ããããã¼ããèªä½ã«ã¯åé¡ãªã模æ§ãã¹ãã¼ããã©ã³ã®ãã©ã¦ã¶ã«ã対å¿ãã¦ããã®ã§å°å ¥ããããã§ãããç»åãã¼ããããã¨ãã«ãã²ãæ´»ç¨ãã ããã Background Blur ï¼ã«ã¡ãã¡ï¼
大ãã話ã§ã¯ãªãããã©ãGIFã¢ãã¡ãã³ãã³ãã©ã¤ã³ããä½ããªãGraphicsMagickã便å©ãªã®ã§å ±æãã¾ãã MP4ã®åç»ãã¡ã¤ã«ããGIFã¢ãã¡ãä½ããã¨ããã¨ãã¾ãffmpegã§åç»ãç»åã«åå²ãã¦ããããimagemagickã§GIFã«çµåããã¨ããæ¹æ³ãããã¾ãã % ffmpeg -i hoge.mp4 -r 2 %04d.png % convert *.png hoge.gifè¤æ°æã®ç»åãimagemagickã§GIFã«çµåããã®ãå®ã¯çµæ§æéããããããç ©ããããã¨ãå¤ãã§ããå ´åã«ãã£ã¦ã¯ãæ°åç§ããã£ããããã ImageMagickã®forkçã§ããGraphicsMagickã使ãã¨é«éã«GIFã¢ãã¡ãçæãããã¨ãã§ãã¾ãã GraphicsMagickã®ã»ãã3~4åéã GraphicsMagickã使ãã°ImageMagickããã3~4åé«éã«GI
ãã½ã³ã³ãå§ãã¨ãã¦ãæ§ã ãªé»åæ©å¨ã§ãé«åº¦ãªç»åå¦çãæ±ããããããã«ãªã£ã¦ãã¦ããã ã¹ãã¼ããã©ã³ã®ã¢ããªããã¸ã«ã¡ã§ããæ¬æ ¼çãªãã©ãã¬ã¿ããæ©è½ãæè¼ããã¦ãããããããå©ç¨ãã¦ãã人ãå¤ãã ããã ããããç»åå¦çããã°ã©ã ã®éçºã§ãã¼ã¨ãªãã®ãã並ååãã ãç»åãå¦çããå ´åã大éã®ãã¼ã¿ã«å¯¾ãã¦åãå¤æå¦çãè¡ã£ã¦ãããã¨ãå¤ããããããå¦çãè¡ãéãç»åãç´°ããªåä½ã«åå²ãã¦ãåæã«å¦çãè¡ããã¨ãã§ããã°å®è¡æéãçãã§ãããä»ã§ã¯ã¹ãã¼ããã©ã³ã«ãæè¼ããã¦ããGPUã¯ãå¦çãåæ並åçã«ãå®è¡ããããã«è¨è¨ãããç»åå¦çç¨ã®ããã»ããµã ããããã並åå¦çã«æé©åãããããã°ã©ã ã³ã¼ããæ¸ãã®ã¯ãé常ã«æéãããããããã°ã©ãã¼ã¯ãã©ã®ãããªã¢ã«ã´ãªãºã ï¼è¨ç®æ¹æ³ï¼ã§ç»åå¦çãè¡ããã¨ãããã¨ã«å ãããããã©ã並ååãããã¨ãããã¨ã¾ã§èããªãã¨ãããªãããã ã MI
ããã«ã¡ã¯ãã¯ã©ã¤ã¢ã³ãåºç¤ãã¼ã ã®ããã§ãã æ¸è²å¦çã®è©±ã®ç¶ãã§ãImageMagick ã®æ¹é ã«ã¤ãã¦ã話ãã¾ãã åå > ImageMagick æ¹é å ¥é (ãã®å¼) æ¸è²å¦çåç·¨ ImageMagick æ¸è²å¦çã®ï¼ã¤ã®ãã§ã¼ãºã®ãã¡ï¼ã¤ç®ã«ããããRGB 空éã§åå²ãããç«æ¹ä½ã®çµ±åå¦çãã§ç¹ã«æéãããã£ã¦ããã®ã§ãå°ãæãå ãã¦é«éåãã¾ããã ååã®ãã®å³ã«ç¸å½ããå¦çã§ãã ImageMagick ã®æ¢åã®å¦ç ååã説æãããRGB 空éã§åå²ãããç«æ¹ä½ã®çµ±åå¦çãã®ããç´°ãã解説ã§ãã çµ±åå¦çã®è©³ç´° æ¢åã® ImageMagick ã®æ¸è²å¦çã§ã¯ãquantize_error ã®å°ããé ã«RGBè²ç©ºéå ã®ç«æ¹ä½ãåé¤ãã¦ããããã®ã²ã¨ã¤è¦ªã®ç«æ¹ä½ã«çµ±åããå¦çãç¹°ãè¿ãã¾ãã 対å¿ã³ã¼ã (magick/quantize.c) æã¿ã®è²æ°ã«ãªãã¾ã§ç¹°ãè¿ã (
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}