Topic: Resizing images

Hello all !!


First things first, let me wish you all a happy 2016 year.


The application I'm building downloads images from the web.

I use :

HTTPGetFile(some_file_url,path_+_image_file_name_to_save');

This goes into a TEMP folder in the application folder, and later this is saved in database with the rest of the infos.


No problem here, everything works fine.


I have chosen to save images in database because too many users would mess up with the folders containing images and I wanted to avoid that.


But with an average of about 300ko per image, database will soon reach 100 of Mo.


My question is, is it possible with a script, before saving into database, to resize pictures while maintaining aspect ratio ?
I've tried a few tricks, but all involved redrawing the picture and calling external addons we can not incorporate in MVD.


Any idea ?


Cheers



Mathias

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: Resizing images

I would call Imagemagick which is very easy to use and to script. Would it work with MVDB, this is the question.

Re: Resizing images

It's not possible in the current version and it's not easy for PNG and GIF files.

Dmitry.

Re: Resizing images

Thanks for the answer.


I'll find a way around that smile

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor