Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-26-2013, 09:06 PM   #16
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 2,861
Karma: 1682890
Join Date: Mar 2012
Location: NSW Australia
Device: none
Quote:
Originally Posted by PeterT View Post
You mean like this request?
Yes, something like that - I don't have much use for it, so I wont be doing anything to progress it.

A few months ago a friend showed me an ebook (mobi or AZW I think) which had about 20 colour 'plates', he said it was too big to read on his iPhone. I had a look at it via a convert to EPUB, the 20 odd plates were 8-12MB 35MP jpeg monsters that would gave looked great on a Sony 108" 4K screen. He declined my offered to 'fix'

BR
BetterRed is offline   Reply With Quote
Old 06-27-2013, 07:28 AM   #17
HC9
Junior Member
HC9 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2013
Device: Kobo & Sony
Hi all,
Here is an update of my case.

Fotosizer tests failed (both version)!

Now I am trying to really unzip epub files
- Unzip them all is ok
- In these conditions, resize images should not be a problem
- Repack epub data, as mentioned, should be done very carefully. If I zip all the files in one step, epub file is not correct. You have to do it in 2 steps.
So Easy to do it (2 steps) manually but I do not know how to do it in batch mode.

@BetterRed are you sure your epub file is correct?

Thanks in advance.
HC9 is offline   Reply With Quote
Old 06-27-2013, 12:24 PM   #18
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 912
Karma: 46025978
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
Quote:
Originally Posted by HC9 View Post
Fotosizer tests failed (both version)!
Failed at what? I'd be surprised if Fotosizer failed to do what it was designed to do -- easily and conveniently decrease the size of jpegs in batches at multiple compression levels.

Maybe it failed to do something you wanted it to do but it wasn't intended to do? That's a different matter.

Your needs are really exact and what you're looking for doesn't appear to be possible at this time with any available software.

--Pat
PatNY is offline   Reply With Quote
Old 06-27-2013, 07:15 PM   #19
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 2,861
Karma: 1682890
Join Date: Mar 2012
Location: NSW Australia
Device: none
Quote:
Originally Posted by HC9 View Post
Hi all,
Here is an update of my case.

Fotosizer tests failed (both version)!

Now I am trying to really unzip epub files
- Unzip them all is ok
- In these conditions, resize images should not be a problem
- Repack epub data, as mentioned, should be done very carefully. If I zip all the files in one step, epub file is not correct. You have to do it in 2 steps.

So Easy to do it (2 steps) manually but I do not know how to do it in batch mode.
I don't know how to do a two-step zip in WinRar - I selected folder in file manager, tapped 'w', selected Add to archive..., changed archive type to ZIP (my default is RAR), hit enter. renamed blah - blah.zip to blah_NEW - blah.epub, added that to library via Calibre Add Books.

Quote:
Originally Posted by HC9 View Post
@BetterRed are you sure your epub file is correct?
I can read resultant EPUB with calibres' ebook-reader, and convert it to RTF and MOBI and read with Word 2007 and Kindle for PC

What I see in each case is what I see in the original EPUB and RTF & MOBI conversions from the original - my visual checks were limited - i.e. I did not do a forensic comparison. Also the images weren't embedded in wrap around text or anything fancy like that. So there maybe circumstances where unzipping & rezipping EPUBs causes problems.

There are some tools to verify the validity of an ePub, there's also the EPUB Quality Check plug in - I don't have any use for them, so I don't have them.

Of interest is that the EPUB with no images compressed a bit larger with WinRAR than the original

I agree with PatNY, Fotosizer works as advertised - it does not claim to do images resizes within a zip - nor does Photoshop or ACD or IrfanView or... The only consumer software I know of that does anything useful with images in a zip is MaxView e.g. browse, slideshow etc, i.e. its viewing features - but not its editing features.

Irfanview's Bulk processing facility will resize & recompress images in subdirectories, but I don't think it will save in situ if you use that feature. However it has an option to create a mirror directory tree in the designated "Results directory" - but it will only write the new images there - you would then have to copy those images into the unzipped epub folders (overwriting the originals).

BR

Last edited by BetterRed; 06-27-2013 at 07:39 PM. Reason: response to two-step zip
BetterRed is offline   Reply With Quote
Old 06-28-2013, 07:53 AM   #20
HC9
Junior Member
HC9 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2013
Device: Kobo & Sony
@PatNY
I tried to resize image with fotosizer inside a zip file seen as a folder by Windows.

@BetterRed
I tryed to directly zip the folder but the epub created was not correct (cover page was ko). I understood I have to create first a zip file with the mime element and after to add items of the ebook.


I contacted Govid Goyal !!
Here is our short talk

This is not worth the effort for me personally. If some one else wants
to implement it, I will be happy to supply any needed guidance. If so,
re-open the ticket and we can discuss it.

status wontfix

** Changed in: calibre
Status: New => Won't Fix

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1195271

Title:
[Enhancement] - Lower size of image files

Status in calibre: e-book management:
Won't Fix

Bug description:
Want to produce small ebook files
Best way is to create ebook files with optimized image files
To do so, we need to manage jpeg quality compression inside Calibre.
Can you do that ?
Best regards,
HC9 is offline   Reply With Quote
Old 06-28-2013, 09:48 AM   #21
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 2,861
Karma: 1682890
Join Date: Mar 2012
Location: NSW Australia
Device: none
Quote:
Originally Posted by HC9 View Post
@PatNY
I tried to resize image with fotosizer inside a zip file seen as a folder by Windows.

@BetterRed
I tryed to directly zip the folder but the epub created was not correct (cover page was ko). I understood I have to create first a zip file with the mime element and after to add items of the ebook.
[/I]
Aaaah, I think I know where you may have gone wrong. When you unzip the epub make sure that you extract it to a folder of the same name so that everything stays in its rightful place.

Lets say your epub file is MyBook.epub
Copy MyBook.epub to MyBook.zip
Rename MyBook.epub to MyBook_Original.epub
Unzip MyBook.zip to a folder named MyBook

The MyBook folder will have a file called mimetype that should contain the string application/epub+zip, otherwise I don't think its started out as an epub file.

Within the MyBook folder you must not
  • delete any files,
  • add any files,
  • change any file or subfolder names
  • move files around,
  • change any text files (html, css, opf, ncx etc)
You should only resize the big image files and save them with exactly the same names in exactly the same places as you find them in the unzipped folder.

Watch out for things like .jpg files being saved as .jpeg or vice versa, also watch out for case changes - eg image.jpg becoming IMAGE.JPG, not sure case matters in this context - but its prudent to assume that it does.

Then zip the MyBook folder and rename it to epub - the original mimetype file will still be there.

You should end up with

file MyBook_Original.epub
file MyBook.zip
folder MyBook
file MyBook.epub

BR

PS : Re your communications with Kovid - If a "Shrink Images" feature was to be implemented I think its more likely to be done as an optional plugin, rather than within the core Calbre product - like Modify, Generate cover etc.

There's a sticky topic for Plugin Suggestions in the Plugins Subforum, you could pop something in there.

BR

Last edited by BetterRed; 06-28-2013 at 10:02 AM. Reason: typo
BetterRed is offline   Reply With Quote
Old 06-28-2013, 11:26 AM   #22
HC9
Junior Member
HC9 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2013
Device: Kobo & Sony
Thanks for the answer and suggestion.
I just ask the question to the guy who created plug In [Size Cover].

Last edited by HC9; 07-01-2013 at 06:40 AM.
HC9 is offline   Reply With Quote
Old 07-01-2013, 06:40 AM   #23
HC9
Junior Member
HC9 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2013
Device: Kobo & Sony
Just a return from the guy who produced [size cover], no way to do it free.
It seems to be dead, now.
HC9 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best image size for cover? Alda ePub 1 03-20-2013 02:08 PM
How to reduce size of opf file??? karenbryant ePub 14 07-06-2012 03:59 AM
How do I reduce popup size for cover selection? lizzielou Calibre 2 05-06-2012 04:41 AM
18MB EPUB converts to 40MB Mobi! What can I do to reduce Mobi file size? perdman Conversion 7 08-27-2011 02:40 PM
Image Size benjaminsolah ePub 13 09-24-2010 11:47 PM


All times are GMT -4. The time now is 04:58 PM.


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