Display a Google Drive image

Bug #1349091 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Wishlist
Unassigned

Bug Description

An image uploaded to Google Drive cannot be displayed directly on a page because the way Google's URLs are constructed. If you wanted to display an image in a text box or journal post or forum post etc., you'd need to change the Google URL.

See http://googlesystem.blogspot.com/2013/02/permalinks-for-google-drive-images.html

This could probably be achieved by writing a filter in Mahara so that users could just take the Google image URL as it is and paste that and Mahara transforms it into the one required to actually display it.

The same should be checked if it could be made to work for videos.

Tags: google
Revision history for this message
Robert Lyon (robertl-9) wrote :

Hmm, the problem with this is there will need to be multiple filters in different places.

If using tinymce the add image form will need to change the url on the fly so that it displays correctly in tinymce.
If using the tinymce edit source function then it will need to change the file on fly when switching back.

If just adding the url to a non tinymce field then it needs to updated on submit to form submission (and possibly alert if problem).

So it is a good idea but will need some work to get it going.

Cheers

Robert

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.