Image optimiser

Filters ::: filter_imageopt
Maintained by Guy Thomas
Resize images to a configurable maximum size. Delay the loading of images until visible in the viewport.
Latest release:
497 sites
34 downloads
45 fans
Current versions available: 5

Image optimiser filter

The image optimiser filter is intended to solve the issue of high resolution images slowing down (and blocking) page loads.

Features:

  • Resize images that are greater than a maximum width and preserve aspect ratios and original images.
  • Resizes images in all filterable text - course content, user profile description, etc.
  • Allow for delayed loading of images (load when visible) with the option of specifying how many images should be loaded immediately before images are placeheld and loaded when in the view port and the page has fully loaded (eliminates blocking for other resources, e.g. javascript in the footer).

Example scenarios:

  • Course designer doesn't know how to resize images prior to upload and uploads a 6 mega pixel image when they don't require this resolution. The filter solves this issue by automatically resizing images to a specified maximum width (aspect ratios are preserved).

  • Course designer uploads 100s of images into a course label The filter can solve this issue by place holding images and making them load only when scrolled into the viewport.

  • Students using mobile data plans are finding their course page to be sluggish due to unnecessarily large images uploaded to their course. The filter can solve this issue by both placeholding images until scrolled into the viewport and then resizing the image which is served to the user.

Configuration

For the filter to work, it must be enabled via Site administration / Plugins / Filters / Manage filters.

The filter settings area available via Site administration / Plugins / Filters / Image optimiser.

By default, the optimiser both place holds (load when visible) and resizes (maximum image width) to 800px.

Videos

Load on visible feature - images are place held and then loaded when visible in the view port.

Non destructive resizing - resampling is always done against the original image

Mobile page load speed WITHOUT the image optimiser

Mobile page load speed WITH the image optimiser (over twice as fast)

Note, the page is ready in half the time when the filter is enabled!

Copyright

(c) Guy Thomas 2017

Licence

http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Author

Developed by Guy Thomas.



Note - for an up to date description of this plugin - please visit:


https://github.com/gthomas2/moodle-filter_imageopt/blob/master/README.md

Screenshots

Screenshot #0
Screenshot #1

Contributors

Guy Thomas (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

వ్యాఖ్యలు చూపు
  • Guy Thomas
    సోమ, 20 ఏప్రి 2020, 6:44 PM
    @Vishal E. Sorry for the late reply. Best to just try it. I've released a version on github that works with Moodle 38 yesterday. The branch is MOODLE_38_STABLE.
  • Pat Sej
    సోమ, 27 ఏప్రి 2020, 12:00 AM
    @Guy Thanks for your answers above (I did not see them earlier ...)
    I see that the Install button is not active for Moodle 3.8
    I suppose that when your branch MOODLE_38_STABLE will have been tested by the community, the button will be active, right?
    Thanks for your work BTW కళ్ళు చికిలిస్తూ
  • Guy Thomas
    శని, 2 మే 2020, 5:48 PM
    @Pat - If you could test it and let me know if you find any bugs I will fix them. If not let me know if its working OK and I will publish a version to this page.
  • Steve Radford
    సోమ, 29 జూన్ 2020, 10:03 PM
    Hi, can I ask whether this plugin has yet been approved for V3.8? The comments above seem to indicate it's OK, but we are reluctant to install plugins that are not verified as working for our Moodle version
  • Mohammad Nabil
    శుక్ర, 2 అక్టో 2020, 4:23 AM
    Hi , dose it work with Moodle 3.7?
  • Guy Thomas
    సోమ, 26 అక్టో 2020, 7:41 PM
    @Steve Radford - 3.8 version available on github https://github.com/gthomas2/moodle-filter_imageopt/tree/MOODLE_38_STABLE
  • Guy Thomas
    సోమ, 26 అక్టో 2020, 7:41 PM
    @Mohammad Nabil - the 3.8 version will probably work OK with 3.7. Not test it though.
  • Mark Berthelemy
    బుధ, 23 డిసెం 2020, 8:24 PM
    Hi @Guy, will you be publishing versions to the Plugins database here? At the moment it's looking unsupported, although I can see you've got a version for Moodle 3.8 in Github. This is such a useful plugin. It's a shame it isn't part of Moodle Core...
  • Ezekiel Lozano
    మంగళ, 2 మార్చి 2021, 10:10 AM
    This is a great plugin! I hope this will work on Moodle 3.10.
    Thanks for making and sharing this plugin.
  • Joseph Liaw
    మంగళ, 2 మార్చి 2021, 11:07 AM
    Agree--this is a great plugin and eventually should be part of the Moodle core since many teachers and students won't necessarily take the time to upload images that are sized correctly or to resize them, and this plugin brilliantly takes care of that automatically. Also does lazy loading, which only loads the image when it's scrolled to--genius!!
  • huw roberts
    గురు, 1 జులై 2021, 6:09 PM
    Hi, this plugin looks great - does it work with Moodle 3.10? Thanks
  • Huw Roberts
    శుక్ర, 2 జులై 2021, 4:45 PM
    I have installed this plugin on Moodle 3.10 and it works very well. Can you confirm if the original (full res) images are still available or are they replaced with optimised versions?
  • Guy Thomas
    సోమ, 5 జులై 2021, 8:42 PM
    @Huw Roberts. The original full res images are still available. If you disable the filter you will see the images as they were pre-optimisation.
  • Joseph Liaw
    సోమ, 5 జులై 2021, 9:59 PM
    This plugin should be part of the core--it will automatically optimize all uploaded images, lazy load them only when pulled up into view, but teachers can either disable the filter or add in the #nofilter tag if they need a full res image to come up--absolutely genius!
  • chandan kumar
    గురు, 12 అక్టో 2023, 5:25 PM
    Please release version for moodle 4.1
1 2 3
Please login to post comments