Save photos in news post
Posted
#5196
(In Topic #1048)
Regarding the photos in news post, is it possible to auto save them in local server instead of remote URL once paste in the form & submitted ? at leaset you will have it on your server if the remote link removed .
Posted
Posted
Go to Admin Zone > Tools > Commandr and enter this command exactly:
Code
:set_value('download_associated_media','1');
Code
:mkdir(get_file_base().'/uploads/external_media');
Code
clear_caches templates
You'll then find a new option has appeared on the posting forms that defaults to on, to download any images locally.
Posted
Perfect done,
But the size of the photos are same as originals, most of them are guge !
Any chance to optimize or decrease them before it saves in /uploads/external_media folder ?
Posted
It's hard to think how to approach that. We could implement a control on the UI to ask for the maximum size to resize to, but this makes things harder for the user for a feature that is meant to make things easier. We could add group settings for the size to resize to, but often the size you want is more to do with the situation than the permissions of the user posting it. We could not do the download if the size is too big. Neither of these seem perfect.
I suppose the best solution may be to change the download checkbox to a list with 4 options:
- Leave remote media as remote
- Download all remote media and limit maximum size to <configured maximum image size setting>
- Download all remote media smaller than <configured maximum image size setting> and leave the rest as remote
- Download all remote media and do not resize [option only there if you have a certain privilege]
I'll add a feature suggestion to the tracker.
0 guests and 0 members have recently viewed this.
