Google imageoptimiser rewriter script(s)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jago25_98
Posts: 1
Joined: 2014-12-02T05:14:42-07:00
Authentication code: 6789

Google imageoptimiser rewriter script(s)

Post by jago25_98 »

This page:
https://developers.google.com/speed/pag ... mizeImages

...provides a .exe.

What would be the equivalent for imagemagick?...with css optimiser tools in a script too?

I don't need this script, I just think it would be useful for people who can't run a .exe. Bear in mind there are apache and wordpress plugins for this... but a imagemagick personally for me is convenient
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Google imageoptimiser rewriter script(s)

Post by snibgo »

Some items on that page are outside the remit of ImageMagick, though IM can assist. For example, the system that builds my web pages asks IM for the dimensions of each image, and then sets the HTML image tags for width and height. Similarly, it tries saving PNG files as JPG with different qualities, choosing the smallest that satisfy the criterium RMSE < 1%.

"-strip" removes metadata, of course.

Remember that IM is an image processor. It won't update HTML or CSS files.
snibgo's IM pages: im.snibgo.com
Post Reply