Image Gallery Refactor

Bug #1896347 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Lisa Seeto

Bug Description

The Image Gallery block is out-of-date and in need of a refactor. The external galleries currently supported will need to be investigated as to whether they are still usable. If they are no longer needed, we will decommission them and we will also decommission the following from the block configuration:
Remove the options for 'Display images from external gallery'
Remove the options to display 'Thumbails' (we will now only need "Thumbnails (Square) and Slideshow)
Remove the 'user photo frame option'
Remove the 'width' option (we are using gridstack now)

description: updated
Lisa Seeto (lisaseeto)
Changed in mahara:
assignee: nobody → Lisa Seeto (lisaseeto)
status: Triaged → In Progress
Revision history for this message
Lisa Seeto (lisaseeto) wrote :

We are currently displaying the icons as links for the following external sites during Image Gallery external gallery configurations:
"Flickr" https://www.flickr.com/ <--- working
"Picasa Web albums" http://picasaweb.google.com/ <--- redirects to google account log-in or if already logged in to google photo albums
"Photobucket" http://www.photobucket.com/ <--- working
"Windows Live" http://www.live.com/ <--- redirects to Outlook email (https://outlook.live.com/owa/)

Flickr
There have been many changes to Flickr including that they use 'albums' now instead of 'sets'. If we continue to support links to Flickr we need to add to our existing Regex to match the new URL patterns.
There is a short URL format, embed code and a BBCode that are produced when a person shares an album.
An example of the short url: https://flic.kr/p/nqwgco
A URL to a Flickr album still using set in the URL text did not work when adding to the Image Gallery block- this URL however did redirect when put directly into the browser.
* Need to add to our current code to allow for changes to URL if we want to continue to support

Picasa Web Albums
Picasa Web Albums has been succeeded by Google Photos. Since the closure of Picasaweb:
Links that will continue to work:
   Links to photos and albums whose URLs use your user ID number (and not your username).
   Links to Public Galleries whose URLs use your user ID number (and not your username).

Links that will stop working:
   Slideshows embedded on websites.
   Picasa Web Albums & photos embedded on websites.
   Links to photos, albums, and Public Galleries whose URLs use your username (and not your user ID number).
(See https://support.google.com/picasa/answer/6383491?hl=en&ref_topic=6247476)

If we wanted to start supporting Google Photos here is some information about sharing their albums.
https://support.google.com/photos/answer/9789702
https://blog.google/products/photos/new-controls-how-you-share-albums-google-photos/

Photobucket
I tried to test a photobucket URL for a public album but a warning was produced about malformed <url>.
I think any urls that worked in the past are now probably broken?

Windows Live Photo Gallery albums
This was retired in 2017. More information found here: https://support.microsoft.com/en-us/windows/downloads-for-windows-32490f9b-01ee-c13e-b2af-b5057c2d34e8

Lisa Seeto (lisaseeto)
summary: - Photobucket developer website not available any more
+ Image Gallery Refactor
Lisa Seeto (lisaseeto)
description: updated
Lisa Seeto (lisaseeto)
description: updated
Lisa Seeto (lisaseeto)
description: updated
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11432

Changed in mahara:
milestone: 21.04.0 → 21.10.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11432
Committed: https://git.mahara.org/mahara/mahara/commit/ed50ec8cc9177a731a9b8b5760853db1ceb67936
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit ed50ec8cc9177a731a9b8b5760853db1ceb67936
Author: Lisa Seeto <email address hidden>
Date: Tue Nov 10 17:59:19 2020 +1300

Bug 1896347: Image Gallery Refactor

Change Image gallery block config modal:
- remove photobucket, picasa, flicker, windowslive options
- remove 'width' option
- remove 'display from external gallery' option
- remove 'thumbnails' option (only use slideshow or thumbnails (square))
- remove 'use photo frame' option

Remove .tpl's for decommissioned external galleries
refactor code so gallery display defaults to thumbnails square if not slideshow
modify behat test

Change-Id: I3a044bb14713baa3f39732364ee4b46f97f5966b
Signed-off-by: Lisa Seeto <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
LisAndi - Andi Becker - http://lisandi.com (lisandi) wrote :

I don't think it is useful to "remove" options as several users might have entered all their images into the gallery using Flickr, and now GooglePhotos - before Picasa.

Additionally the option to have a way to present external galleries enabled Mahara Portfolio owners to reduce the necessary webspace and the controls (access to those spaces - and with it the legal requirements i.e. GDPR for those spaces) Now by having those options no more available also the legal obligations are 100% laying by those Mahara instance owners instead by Flickr/Picasa/Google or Apple Photos etc. and as a plus they will need a lot more of space available to host all those images and videos themselves. As Mahara until now has no way to process and reduce image space i.e. by integrating a way to reduce the image sizes which get uploaded to a max pixel size and of course by compressing the images i.e. by using a web service like http://www.resmush.it (check the Wordpress plugin)

https://github.com/artisansweb/image-optimizer - that might be pretty useful here!

I would definitely vote for continuing the integration of web image spaces -
especially:
Flickr
Google Photos
Apple Photos

for integrating single images but also for integrating albums and galleries provided by those services. It makes live much much easier for Mahara Portfolio owners!

Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.