[Kde-imaging] [Bug 205406] New: Javascript scaling of images in HTML export
Pieter Edelman
p.edelman at gmx.net
Thu Aug 27 22:30:02 CEST 2009
https://bugs.kde.org/show_bug.cgi?id=205406
Summary: Javascript scaling of images in HTML export
Product: kipiplugins
Version: unspecified
Platform: Compiled Sources
OS/Version: unspecified
Status: UNCONFIRMED
Severity: wishlist
Priority: NOR
Component: general
AssignedTo: kde-imaging at kde.org
ReportedBy: p.edelman at gmx.net
Version: (using Devel)
Installed from: Compiled sources
Images in the HTML export are currently displayed to their actual size. If they
need to fit into the image window, the user has to scale them to a size for
which (s)he thinks will probably fit into the browser window.
This solution doesn’t feel right to me. First, it is hard to predict what
browser size somebody will have (and goes against the spirit of HTML). If too
large a value is chosen, the image will be larger than the browser window. If
the value is too small, the screen isn’t use optimally. Second, when there are
both landscape and portrait (and panorama) images, the maximum size trick
doesn't work. Netbooks and widescreens make this even more tricky. See also bug
129902.
So I wrote a small Javascript script that scales photos down (not up) according
to the available size in the browser, to make sure all elements are always
visible (image, title, next and previous links, etc). It works with all themes
and as far as I can tell in all browsers (IE6 and 7, FF3, Chrome, Opera,
Konqueror (there’s just a problem when using a frames theme and the Konqueror
window is resized)). The image is hidden until it is resized to prevent
flickering. Most importantly, it degrades gracefully (if the script doesn’t
work, the image is scaled to the normal values).
I think it’s quite a nice script and would be a nice addition to the HTML
export plugin. But to prepare a patch, I need to know where I can put it. In a
separate theme? In all themes? With a config option?.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kde-imaging
mailing list