ÍøվͼƬ´¦Àí×î¼Ñ¹¤¾ß£ºGraphicsMagick
ÕâЩÌìÖØиĽøÁËÎÒµÄͼƬ´æ´¢ÏµÍ³£¬ÒѾÍêÈ«¸ÄÓÃphp + ÃüÁîÐÐGraphicsMagick ¼° nginx + lua + GraphicsMagick µÄ·½·¨´¦Àí£¬php + ÃüÁîÐÐGraphicsMagick ÓÃÓÚÔ¤ÏÈÉú³É¹æ¶¨·¶Î§ÄڳߴçµÄͼƬ£¬nginx + lua + GraphicsMagick ÓÃÓÚ¶¯Ì¬Éú³ÉÖ¸¶¨´óСËõͼ¡£
GraphicsMagick ÊÇ´ÓImageMagick·ÖÀë³öÀ´µÄ£¬ ±ÈImageMigack ÐÔÄܸüºÃ£¬ ¸üÊʺÏÍøÕ¾·þÎñÆ÷¶Ë´¦ÀíͼƬÓá£
CentOSÏ°²×°GraphicsMagick
ºÜ¼òµ¥£¬ ÏÈÆôÓÃEPEL repo£¬ Ö±½Óyum°²×°
# yum -y install GraphicsMagick GraphicsMagick-devel
¸ã¶¨£¡
Èç¹ûÄãÐèÒªÔÚphpÄÚʹÓà pecl À©Õ¹ gmagick£¬°²×°·½·¨ÈçÏÂ
# pecl install gmagick
# echo 'extension=gmagick.so'> /etc/php.d/gmagick.ini
°²×° pecl À©Õ¹³ö´í
# pecl install gmagick
Failed to download pecl/gmagick within preferred state “stable”£¬ latest release is version 1.1.0RC3£¬ stability “beta”£¬ use “channel://pecl.php.net/gmagick-1.1.0RC3” to install
ʹÓÃÈçÏÂÃüÁî
# pecl install channel://pecl.php.net/gmagick-1.1.0RC3
¸ã¶¨£¡
GraphicsMagick ³£ÓÃÃüÁî
ʹÓÃÃüÁî»ù±¾ºÍ ImageMagick Ïàͬ£¬ ·ÅÒ»¶ÎÎÒÉúËõͼº¯ÊýÄڵĴúÂë
×¢Ò⣺ ʹÓà thumbnail ²ÎÊý±ÈʹÓà convert ÐÔÄܺ㬠ÓÃÓÚ´¦Àí´óµÄͼƬ
if ($width) {
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄKV´æ´¢ÏµÍ³
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨¶þ£©
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨Ò»£©
- Ðì¹úÏ飺΢²©ÊÇ·ñ»á²ÎÓëÍøÕ¾ÅÅÃû
- ApacheÔÚ±¾µØ½¨Á¢·ºÓòÃûÐéÄâÖ÷»ú¼ò·¨
- ÈçºÎ½øÐÐÍøÕ¾Õï¶Ï ΪÍøÕ¾½øÐÐÆÀ·Ö
- Ò»¸ö³É¹¦µÄÕ¾³¤Ó¦¸Ã¾ß±¸µÄËØÖÊ
- Ò»Ìõ΢²©Òý·¢µÄ·ÖÎö£ºÈçºÎÈÃ΢²©µÃµ½¹ã·º´«²¥
- ÈçºÎÈÃÒ»¸öÍøÕ¾ÓÐÇ¿´óÉúÃüÁ¦
- פ×ãIDCÃż÷³Ö±Ò¹ÛÍû Õ¾³¤Ñ¡¹º¿Õ¼ä³É¡°¼èÄѵľö¶¨¡±£¿
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
ÆÀÂÛ