Save photos in news post

Post

Posted
Rating:
#5611 (In Topic #1304)
Avatar
Standard member
fares9 is in the usergroup ‘Fan in action’

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 .
 
Online now: No Back to the top

Post

Posted
Rating:
#5612
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Why not just attach the image. If you are using windows, in the explorer window just insert the http link to the image for the local path. This will automatically download the image to your computer and upload it.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam)
#5614
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
There is an unofficial feature for it that needs to be enabled manually in Commandr.

Go to Admin Zone > Tools > Commandr and enter this command exactly:

Code

:set_value('download_associated_media','1');
then:

Code

:mkdir(get_file_base().'/uploads/external_media');
then:

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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5617
Avatar
Standard member
fares9 is in the usergroup ‘Fan in action’
Thanks Chris,

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 ?
Online now: No Back to the top

Post

Posted
Rating:
#5619
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
That's too much of an assumption for us to implement easily. If an admin is embedding a large desktop wallpaper for their users to download, it is very different from a naive user linking to a high-res digital camera image that doesn't need to be seen in full resolution.

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:
  1. Leave remote media as remote
  2. Download all remote media and limit maximum size to <configured maximum image size setting>
  3. Download all remote media smaller than <configured maximum image size setting> and leave the rest as remote
  4. 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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

Vaiva, Philip, gabriel58, MVLipwig, John Connor

Forum statistics:
  • 1,174 topics, 5,550 posts, 6,745 members
  • Our newest member is Sophia_Williams
Birthdays:
Back to Top