Thread: ePUB Optimizer
View Single Post
Old 12-02-2014, 11:58 AM   #29
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,182
Karma: 6565382
Join Date: Nov 2009
Device: many
Hi Toxaris,

Thanks for the links.

On Mac OS X 10.10 with the command line tools installed, jpeg6src.v6b and gifsicle build right out of the box with the standard ./configure; make sequence

Optipng does not build out of the box as it does not properly protect a call to utimensat that does not exist on Mac OS X but which does define the sys/fcntl.h AT_FDCWD.

So I have attached a patch for that.

Hopefully, when I get some time tonight, I will try your plugin. If it works, I would be happy to zip up those 3 command line programs and post them for you (or other Mac OS X users).

Thanks!

Kevin




Quote:
Originally Posted by Toxaris View Post
OptiPNG: http://optipng.sourceforge.net/

For jpegran (older version, but I think same logic applies):
jpegtran is part of a package of few tools known as libjpeg

1) Get the source code from here. It's the file called jpegsrc.v6b.tar.gz. Using cURL you can download like:
curl http://www.ijg.org/files/jpegsrc.v6b.tar.gz > /tmp/libjpeg.tar.gz
2) Uncompres the package, e.g. tar -xzvf /tmp/libjpeg.tar.gz
3) go to the directory that contains the uncompressed code, e.g. cd /tmp/jpeg-6b
4) ./configure
5) sudo make install

Via http://www.lcdf.org/gifsicle/ the source for Gifsicle can be found and also an OSX port I believe.
Attached Files
File Type: zip optipng_osys_macosx.patch.zip (411 Bytes, 897 views)
KevinH is online now   Reply With Quote