Package: bins
Version: 1.1.28-1
Severity: normal
Tags: patch

The doc says that javaScriptPreloadImage preloads the next image of the
same size:

javaScriptPreloadImage
    If  set  to  1,  add  some javascript code in image pages to
    preload the next image of the same size when current one  is
    loaded, to speed up the album browsing.

It actually preloads the next image at maximum size, slowing down album
browsing.

Patch based on the other use of $sizeLink in bins:

             #my ($xbase, $xpath, $xtype) =
             #fileparse($imagesToDisplay[$nextImageNum], '\.[^.]+\z');

             my $sizeLink = $imageData[$nextImageNum]->{'maxSize'};
+            if ($sizeLink >= $size ) {
+                $sizeLink = $size;
+            }

             $imageData[$i]{$j}{'nextHTML'} =
                 getHTMLImagePageLink($imageData[$nextImageNum], $j,
                                     $nextImageNum);

             $imageData[$i]{$j}{'preloadIMG'} =
                 jssafe_uri_escape($imageData[$nextImageNum]{'basename'})."_".
                 $imageData[$nextImageNum]{configuration}{sizeNames}[$sizeLink].

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages bins depends on:
ii  libhtml-clean-perl          0.8-8        Cleans up HTML code for web browse
ii  libhtml-parser-perl         3.45-2       A collection of modules that parse
ii  libhtml-template-perl       2.6-2        HTML::Template : A module for usin
ii  libimage-info-perl          1.16-2       allows extraction of meta informat
ii  libimage-size-perl          2.992-1      determine the size of images in se
ii  libio-string-perl           1.05-1       Emulate IO::File interface for in-
ii  libjpeg-progs               6b-10        Programs for manipulating JPEG fil
ii  liblocale-gettext-perl      1.05-1       Using libc functions for internati
ii  libtext-iconv-perl          1.4-1        converts between character sets in
ii  libtimedate-perl            1.1600-4     Time and date functions for Perl
ii  liburi-perl                 1.35-1       Manipulates and accesses URI strin
ii  libxml-grove-perl           0.46alpha-11 Perl module for accessing parsed *
ii  libxml-handler-yawriter-per 0.23-5       Perl module for writing XML docume
ii  libxml-perl                 0.08-1       Perl modules for working with XML
ii  libxml-writer-perl          0.600-1      Perl module for writing XML docume
ii  libxml-xql-perl             0.68-4       Perl module for querying XML tree 
ii  perlmagick                  6:6.2.3.6-3  A perl interface to the libMagick 

bins recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to