Database

Resize images when loaded in a picture field

 
Picture of Zabelle Motte
Resize images when loaded in a picture field
 

Hello,

I found this very interresting plugin that resizes images in moodle contents trough filter :
https://moodle.org/plugins/filter_imageopt

Is it possible to have such image resizing work on database image upload ?
On wich function do we have to act int database code ?

Thanks in advance for help.

Kisses

Zabelle

 
Average of ratings: -
Picture of William Lu
Re: Resize images when loaded in a picture field
Particularly helpful Moodlers

It is a filter, should work automatically in the background.


 
Average of ratings: -
Picture of john parker
Re: Resize images when loaded in a picture field
 

You don't need to do this using the DBMS code. In the DBMS you can do it manually. To know more about this, visit dell support to know more about this.

 
Average of ratings: -
Picture of AL Rachels
Re: Resize images when loaded in a picture field
Core developersParticularly helpful MoodlersPlugin developersTesters

Late reply due to just seeing this. When you create a database activity with a picture field, the field settings allow you to set the height and width of uploaded images, for both the single view and list view.

 
Average of ratings: -
Picture of Zabelle Motte
Re: Resize images when loaded in a picture field
 

Yes but the image file stored on the server remains a big file even if image is showed with small width and heit.



 
Average of ratings: -