← Back to team overview

mahara-contributors team mailing list archive

[Bug 1397005] Re: Image Gallery option "square thumbnails" distorts displayed images when their width and height are not equal.

 

To get a better idea of what this patch does, I've attached a screenshot
showing side-by-side:

1. The gallery block with the "Thumbnails" setting

2. The gallery block with the "Thumbnails (square)" setting before this
patch

3. The gallery block with the "Thumbnails (square)" setting after this
patch

You can see that neither "Thumbnails" nor "Thumbnails (square)" works
particularly well for galleries that have a mix of images of different
aspect ratios. "Thumbnails" sort of packs them together based on the
size of the largest image, while "Thumbnails (square)" distorts them all
into squares. So this new patch is certainly an improvement, scaling
them all to fit into a square of the same size.

On the other hand, it also seems to put a big frame around the images?
And if "Show descriptions" is turned on, it shrinks the images extra
small to make room for the caption underneath them, which I'm not as
happy about.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1397005

Title:
  Image Gallery option "square thumbnails" distorts displayed images
  when their width and height are not equal.

Status in Mahara ePortfolio:
  In Progress

Bug description:
  When defining an image gallery a user can choose the option "square thumbnails". This results in a Layout that shows the images distorted when their width and height are not equal. In most cases this is not the best result. 
  Version: 1.10.0, 1.9.3 (approved) and others
  I made a quick fix for that by adding a new option that renders the images to fit in the defined square.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1397005/+subscriptions


Follow ups

References