View Single Post
Old 04-03-2008, 12:27 PM   #475
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by tompe View Post
Maybe not but I only tested one file know to have the problem and it worked so it is hard to know. But when there is an official firmware updated I will change the default and maybe have a flag for the old behaviour.
Thank-you!

p.s. I tried this for html2mobi and opf2mobi:
I tried my $rescale_large_images = 0; in Util.pm, but still got max. 480 widths. Then I noticed in Util.pm
Code:
sub get_image_data {
    my $filename = shift;
    my $rescale = shift;

    $rescale_large_images = $rescale if defined $rescale;
and wanted to pass $rescale of 0. For the flag to work, I tried changing in MobiFile.pm
Code:
my $data = MobiPerl::Util::get_image_data ($filename);
to
Code:
my $data = MobiPerl::Util::get_image_data ($filename, $resize_flag);
where $resize_flag is set 0 for non-Cybook .prc but still got max. 480 widths.
I'm stumped! Where else is it being resized?

Last edited by nrapallo; 04-03-2008 at 12:41 PM. Reason: fixed typos
nrapallo is offline   Reply With Quote