EExcel 丞燕快速查詢2

EExcel 丞燕快速查詢2
EExcel 丞燕快速查詢2 https://sandk.ffbizs.com/

php image compression || php image optimization

2016/03/02

http://www.mikkonen.info/imageutil/




=====2015/11/29


http://www.smashingmagazine.com/2015/06/efficient-image-resizing-with-imagemagick/

From my tests, running ImageMagick with the following settingsproduced the smallest results, while generally being visually indistinguishable from Photoshop’s output:

mogrify -path OUTPUT_PATH -filter Triangle -define filter:support=2 -thumbnail OUTPUT_WIDTH -unsharp 0.25x0.25+8+0.065 -dither None -posterize 136 -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace sRGB -strip INPUT_PATH

I looked at 11 different functions and found that -thumbnail does the best job of optimizing quality and file size.

PHP

composer require nwtn/php-respimg

require_once('vendor/autoload.php');
 use nwtn\Respimg as Respimg;
$image = new Respimg($input_filename);
$image->smartResize($output_width, 0, false);
$image->writeImage($output_filename);



At the moment the script is a bit limited, and there’s no *great* way to do this. However, you could try running it in a loop on the command line, like this:

for f in inputdir/* ; do smartresize "$f" 300 outputdir/; done

=====

https://a1websitepro.com/optimize-images-with-php-in-a-directory-on-your-server/

auto height or width image optimization


=====

http://calendar.perfplanet.com/2014/mozjpeg-3-0/

=====

image-serverhttps://github.com/blomming/image-server

=====

Smart Lencioni Image Resizer  GD
https://github.com/lencioni/SLIR

=====

https://github.com/mozilla/mozjpeg/releases

=====

幾個圖片無損的壓縮方案
http://blog.chengweichen.com/2015/10/blog-post.html
http://blog.chengweichen.com/2015/10/mozjpeg.html

=====

win32 工作 免費的
http://nikkhokkho.sourceforge.net/static.php?page=FileOptimizer