From f42215cb65173299bca13cd8bafabdcb9ad2ab2d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 27 Sep 2009 20:53:02 -0400 Subject: img: Correct bug in image size calculation code. If an image was resized smaller, with width and height specified to values that did not fit its aspect ratio, the image tag with/height were not adjusted to the actual size imagemagick chooses. This was broken by 03449610d6c666ba24bea68f01d896613e522278. To fix it right, it unfortunatly needs to always read the src image now, in order to determine if the image is being displayed larger, or resized smaller. When resized smaller, it then always uses the size of the thumbnail, while for larger it calculates the size. (Only way to get rid of this sometimes extra image read would be to change it to not allow displaying images larger.) --- debian/changelog | 1 + 1 file changed, 1 insertion(+) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 2e27d623e..d2ff88a2a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ ikiwiki (3.14159266) UNRELEASED; urgency=low * parentlinks: Add has_parentlinks template parameter to allow styling the toplevel index differently etc. + * img: Correct bug in image size calculation code. -- Joey Hess Sun, 27 Sep 2009 17:40:03 -0400 -- cgit v1.2.3