Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 02-06-2015, 11:42 AM   #16
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by Freeshadow View Post
Some ideas:
For metadata removal only you could use jpegoptim too.
Similar could be done with SVG: http://code.google.com/p/svgmin/
I will check out svgmin. However, there must be a version available for Windows, Linux and OSX or it must be available for build. Otherwise I will not use it. The same applies for jpegoptim, although for that one I also will have to check the additional advantage.

Quote:
Originally Posted by Freeshadow View Post
Are you recompressing with Zopfli?
AdvanceCOMP:
Advpng for the images;
Advzip for the finished epubs.

When I was digging for shrinking tools for Hitch I also searched for minification tools which could be applied to the epub's CSS and sources, but found only *. js stuff for use with webservers. Have no idea how to utilise it. Minification could be worth being looked up too.
No, I do not use Zopfli. I know it compresses even more, but the speed is ridiculous compared to the saved space. I just use the highest compression level. BTW, Sigil uses the same compression. I will check about minification, but I don't expect much from it.

Quote:
Originally Posted by Freeshadow View Post
Apart from that - what you are doing here: intelligent standalone tools for font subsetting; storage footprint optimisation (I'm a compression fan myself ) - what you do is exactly literally what I had in mind. It's development in the direction that matters. Bleeding edge, tailor made best possible epubs. Kudos and big big thanks for what you do.
Yes, I have created the tools for font subsetting myself and it is using intelligent algorithms to check the actual glyph usage. I can stand that I haven't solved the OTF issue so far... For the imaging I am using standard applications which are available and the standard zip-routines (although not a standard zip-library).

Last edited by Toxaris; 02-06-2015 at 12:17 PM.
Toxaris is offline   Reply With Quote
Old 02-06-2015, 11:55 AM   #17
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
There is a way to optimize JPG images even more than is done with ePUB Optimizer. That requires using jpegtran with a specific scan order for RGB jpeg and a specific scan order for greyscale jpg. But you have to be careful. Using the wrong scan order will cause your image to be 0 bytes.

If you want to know about this, I can post what you is needed to get that extra bit reduced.
I was not able to get this to work in a reliable way. Often the images were scambled or reduced to 0 even if the right scan order was used.
Toxaris is offline   Reply With Quote
Advert
Old 02-06-2015, 11:55 AM   #18
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by eschwartz View Post
I get great results out of zopflipng -- just remember to set it going overnight it takes a while.
Really? I think that optipng already is taking a long time.
Toxaris is offline   Reply With Quote
Old 02-06-2015, 11:57 AM   #19
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
I get even better results converting to JPG as most time, the images in PNG don't need to be PNG.
Really? Most of my images are better in PNG (graphs, B/W drawings). In those cases the PNG a whole lot smaller than the JPG of the same.
Toxaris is offline   Reply With Quote
Old 02-06-2015, 12:01 PM   #20
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by GrannyGrump View Post
@Toxaris, Yes, please do share your parameters. I am looking for ways to get smaller image files, because it seems like every project I start on a whim turns out to be very image-heavy. Especially now, when I have decided to go with higher-resolution images instead of 600x800.
The important parameters I use:
JPEGTRAN: -optimize -progressive
OPTIPNG: -force -o7
GIFSICLE: -O2
Toxaris is offline   Reply With Quote
Advert
Old 02-06-2015, 01:03 PM   #21
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Toxaris View Post
I was not able to get this to work in a reliable way. Often the images were scrambled or reduced to 0 even if the right scan order was used.
I've not (yet) had a problem with scrambled images. But I have seen the 0 bytes images when the wrong scan order is used. One thing I have seen is B&W/grayscale images saved as RGB (from the publisher). Would there be anyway to automate converting those to proper grayscale?
JSWolf is offline   Reply With Quote
Old 02-06-2015, 01:50 PM   #22
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Toxaris View Post
No, I do not use Zopfli. I know it compresses even more, but the speed is ridiculous compared to the saved space. I just use the highest compression level. BTW, Sigil uses the same compression. I will check about minification, but I don't expect much from it.
Quote:
Originally Posted by Toxaris View Post
Really? I think that optipng already is taking a long time.
That is why I wouldn't recommend using it unless you specifically know what you are getting into...

There are plenty of time-wasting things that I would never sit around watching which I am more than happy to leave running overnight.

zopflipng is definitely not something to use in a generic automation routine.

I am happy to set it running on a directory overnight and reopen books to update the images, if it means space reduction -- even minor. It doesn't really cost anything (except preparation) and overly large books make me sad.
eschwartz is offline   Reply With Quote
Old 02-06-2015, 01:50 PM   #23
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by JSWolf View Post
I get even better results converting to JPG as most time, the images in PNG don't need to be PNG.
Quote:
Originally Posted by Toxaris View Post
Really? Most of my images are better in PNG (graphs, B/W drawings). In those cases the PNG a whole lot smaller than the JPG of the same.
^^ This...
eschwartz is offline   Reply With Quote
Old 02-06-2015, 06:57 PM   #24
Freeshadow
temp. out of service
Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.
 
Posts: 2,792
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
Quote:
Originally Posted by JSWolf View Post
One thing I have seen is B&W/grayscale images saved as RGB (from the publisher).
Sometimes saving as grayscale gives you bigger images than rgb (even if it doesn't make sense at 1st glance) I haven't archive the links to explanations but in short it's because the difference in which data is saved in both types (rgb in col. vs. I think satur. in grayscale type images) so it can be what you have seen.
As to your other statement: suggested converting from a losless (PNG) into a lossy (JPG) format as an optimisation (sic!) step is :facepalm:.
Go and wash your mouth out for that (or your hands - you were typing)
Freeshadow is offline   Reply With Quote
Old 02-08-2015, 02:46 AM   #25
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Freeshadow View Post
Sometimes saving as grayscale gives you bigger images than rgb (even if it doesn't make sense at 1st glance) I haven't archive the links to explanations but in short it's because the difference in which data is saved in both types (rgb in col. vs. I think satur. in grayscale type images) so it can be what you have seen.
As to your other statement: suggested converting from a losless (PNG) into a lossy (JPG) format as an optimisation (sic!) step is :facepalm:.
Go and wash your mouth out for that (or your hands - you were typing)
A lot of PNG is not needed to be PNG. I see covers in PNG that are a lot larger then they need to be and saving in JPG cuts the size. I do compare the two images to see if there is a difference and usually not anything noticeable.
JSWolf is offline   Reply With Quote
Old 04-21-2015, 08:39 AM   #26
Barto
Junior Member
Barto began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Apr 2015
Device: Kindle Fire, Kindle Paper White, Sony Reader,ADE (Win),BlueFire (And)
Hi Toxaris,
I have been trying to add your plugin to Sigil (0.8.6) but to no avail.
The notification is: 'Error: not a valid Sigil Plugin'.
Can you tell what could be the cause of this?
Barto is offline   Reply With Quote
Old 04-21-2015, 01:03 PM   #27
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Please report this in the corresponding plugin thread, because there are differences...

Please describe what you are doing exactly there.
Toxaris is offline   Reply With Quote
Old 04-22-2015, 02:14 AM   #28
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by JSWolf View Post
A lot of PNG is not needed to be PNG. I see covers in PNG that are a lot larger then they need to be and saving in JPG cuts the size. I do compare the two images to see if there is a difference and usually not anything noticeable.
Dumb Q?: why not just save it as PNG-8?

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePUB Optimizer Toxaris Plugins 166 11-16-2021 05:59 PM
Comic optimizer script rhon Kobo Reader 0 11-08-2012 06:04 PM
Mokle - Mangas Optimizer for Kindle devorez Kindle Developer's Corner 11 08-14-2012 07:15 PM
Patent/Heavy graphics pdfs and Adobe PDF Optimizer andrewscheinman iRex 4 12-26-2009 11:39 AM
PRS-500 PDF file optimizer phigdon Sony Reader Dev Corner 1 04-01-2007 11:40 PM


All times are GMT -4. The time now is 11:34 PM.


MobileRead.com is a privately owned, operated and funded community.