[Mahara-contributors] [Bug 717184] Re: Resize images at upload time
** Tags added: newfeature1.6 -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/717184 Title: Resize images at upload time Status in Mahara ePortfolio: Fix Committed Bug description: I'm aware that the roadmap for 1.4 mentions resizing images on the fly for use in Views, however, I feel that it would be more appropriate to resize images when they are uploaded as this would avoid using too much of a user's quota. The way I envisage this is that the site administrator sets a maximum size and any image larger than this is automatically resized. Perhaps also there could be a checkbox when uploading to override this, in the rare case that an image needs to be full-resolution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/717184/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 717184] Re: Resize images at upload time
Just a comment on the implementation. It is a shame this was implemented in the view (function pieform_element_filebrowser_upload) and not in the base file artefact class (i.e. ArtefactTypeFile::save_uploaded_file method). If a user has enabled image resizing then ArtefactTypeFile::save_uploaded_file should resize the image on save automatically. What has been implemented is a Fix to the web-form only - the biggest culprit to uploading oversized images may be mobile devices (as the mobile user often lacks the control to resize the content on the device) With this implementation the mobile API would need to reinvent the wheel. The endable resize config option does not actual resize all uploaded content. -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/717184 Title: Resize images at upload time Status in Mahara ePortfolio: Fix Committed Bug description: I'm aware that the roadmap for 1.4 mentions resizing images on the fly for use in Views, however, I feel that it would be more appropriate to resize images when they are uploaded as this would avoid using too much of a user's quota. The way I envisage this is that the site administrator sets a maximum size and any image larger than this is automatically resized. Perhaps also there could be a checkbox when uploading to override this, in the rare case that an image needs to be full-resolution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/717184/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 717184] Re: Resize images at upload time
I will create a secondary bug to move the functionality -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/717184 Title: Resize images at upload time Status in Mahara ePortfolio: Fix Committed Bug description: I'm aware that the roadmap for 1.4 mentions resizing images on the fly for use in Views, however, I feel that it would be more appropriate to resize images when they are uploaded as this would avoid using too much of a user's quota. The way I envisage this is that the site administrator sets a maximum size and any image larger than this is automatically resized. Perhaps also there could be a checkbox when uploading to override this, in the rare case that an image needs to be full-resolution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/717184/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 717184] Re: Resize images at upload time
Reviewed in https://reviews.mahara.org/#/q/status:merged+project:mahara+branch:master+topic:resizeimagesonupload,n,z ** Changed in: mahara Status: Triaged = Fix Committed ** Changed in: mahara Milestone: None = 1.6.0 ** Changed in: mahara Assignee: (unassigned) = Mike Kelly (m-f-kelly) -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/717184 Title: Resize images at upload time Status in Mahara ePortfolio: Fix Committed Bug description: I'm aware that the roadmap for 1.4 mentions resizing images on the fly for use in Views, however, I feel that it would be more appropriate to resize images when they are uploaded as this would avoid using too much of a user's quota. The way I envisage this is that the site administrator sets a maximum size and any image larger than this is automatically resized. Perhaps also there could be a checkbox when uploading to override this, in the rare case that an image needs to be full-resolution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/717184/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 717184] Re: Resize images at upload time
P.S. We can help you get started with using git. I am more of a novice myself, but one of the experienced developers can lend you a hand. -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/717184 Title: Resize images at upload time Status in Mahara ePortfolio: Triaged Bug description: I'm aware that the roadmap for 1.4 mentions resizing images on the fly for use in Views, however, I feel that it would be more appropriate to resize images when they are uploaded as this would avoid using too much of a user's quota. The way I envisage this is that the site administrator sets a maximum size and any image larger than this is automatically resized. Perhaps also there could be a checkbox when uploading to override this, in the rare case that an image needs to be full-resolution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/717184/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 717184] Re: Resize images at upload time
Hello Steve, Thank you for the patch. Were you thinking of using our review system instead (as Francois described above) so that your code could be committed straight through there. In addition, you would also get credit for it in git. Cheers Kristina -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/717184 Title: Resize images at upload time Status in Mahara ePortfolio: Triaged Bug description: I'm aware that the roadmap for 1.4 mentions resizing images on the fly for use in Views, however, I feel that it would be more appropriate to resize images when they are uploaded as this would avoid using too much of a user's quota. The way I envisage this is that the site administrator sets a maximum size and any image larger than this is automatically resized. Perhaps also there could be a checkbox when uploading to override this, in the rare case that an image needs to be full-resolution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/717184/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 717184] Re: Resize images at upload time
...and the Zip. ** Attachment added: extract contents and overwrite artefact/file https://bugs.launchpad.net/mahara/+bug/717184/+attachment/2634527/+files/file.zip -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/717184 Title: Resize images at upload time Status in Mahara ePortfolio: Triaged Bug description: I'm aware that the roadmap for 1.4 mentions resizing images on the fly for use in Views, however, I feel that it would be more appropriate to resize images when they are uploaded as this would avoid using too much of a user's quota. The way I envisage this is that the site administrator sets a maximum size and any image larger than this is automatically resized. Perhaps also there could be a checkbox when uploading to override this, in the rare case that an image needs to be full-resolution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/717184/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 717184] Re: Resize images at upload time
I've attached a patch file which should work. I should add the caveat that I've never done a patch before so I can't guarantee it. However, I've also attached a Zip file (provided by our developers) which will perform the same task if you overwrite the artefact/file folder with its contents. ** Patch added: patch created with diff -crB options https://bugs.launchpad.net/mahara/+bug/717184/+attachment/2634526/+files/resize-images-at-upload.patch -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/717184 Title: Resize images at upload time Status in Mahara ePortfolio: Triaged Bug description: I'm aware that the roadmap for 1.4 mentions resizing images on the fly for use in Views, however, I feel that it would be more appropriate to resize images when they are uploaded as this would avoid using too much of a user's quota. The way I envisage this is that the site administrator sets a maximum size and any image larger than this is automatically resized. Perhaps also there could be a checkbox when uploading to override this, in the rare case that an image needs to be full-resolution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/717184/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 717184] Re: Resize images at upload time
** Summary changed: - Wishlist: resize images at upload + Resize images at upload time -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/717184 Title: Resize images at upload time Status in Mahara ePortfolio: Triaged Bug description: I'm aware that the roadmap for 1.4 mentions resizing images on the fly for use in Views, however, I feel that it would be more appropriate to resize images when they are uploaded as this would avoid using too much of a user's quota. The way I envisage this is that the site administrator sets a maximum size and any image larger than this is automatically resized. Perhaps also there could be a checkbox when uploading to override this, in the rare case that an image needs to be full-resolution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/717184/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 717184] Re: Resize images at upload time
I've managed to get this developed by our local team. There is now a preselected option to resize any image to defaults set in the administration pages (we've gone for 1024 x 768), maintaining aspect ratio, which appears anywhere a file can be uploaded. The upload takes a little longer but it makes massive savings on space. I've attached a screen shot for information. Is there an easy way to contribute this back? I'm not an expert in this stuff but I can ask our developers to help out where necessary. ** Attachment added: screen shot https://bugs.launchpad.net/mahara/+bug/717184/+attachment/2604819/+files/auto-resize-screenshot.png -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/717184 Title: Resize images at upload time Status in Mahara ePortfolio: Triaged Bug description: I'm aware that the roadmap for 1.4 mentions resizing images on the fly for use in Views, however, I feel that it would be more appropriate to resize images when they are uploaded as this would avoid using too much of a user's quota. The way I envisage this is that the site administrator sets a maximum size and any image larger than this is automatically resized. Perhaps also there could be a checkbox when uploading to override this, in the rare case that an image needs to be full-resolution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/717184/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp