Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » is there a way to optimize image file size on upload..

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 681 Views
  • zim
    Avatar
    Community Member
    135 Posts

    is there a way to optimize image file size on upload.. Link to this post

    I am using imagegallery module.

    an admin user who does not know much about image manipulation uploaded a load of HUGE images that broke CMS and main site. I know that i can increase memory in _config.php but I just wondered if there was a way to optimize these images on upload to avoid this problem. I dont think there is.... but just in case.

    Otherwise I guess I will have to teach them how to use photshop

  • UncleCheese
    Avatar
    4085 Posts

    Re: is there a way to optimize image file size on upload.. Link to this post

    You would use the onAfterUpload() hook for that. Unfortunately, Uploadify doesn't trigger that hook, but I will add in that change today, because it should do so.

    ---------------
    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

  • zim
    Avatar
    Community Member
    135 Posts

    Re: is there a way to optimize image file size on upload.. Link to this post

    Hey Unclecheese.

    that is great. I will definately utilize this once done... much appreciated and should help the editors of the site i built a lot.

    I don't suppose you could let me know when you have done this? Otherwise I will check out Uploadify over the next week or so.

    Top man!

  • ambient
    Avatar
    Community Member
    123 Posts

    Re: is there a way to optimize image file size on upload.. Link to this post

    Hi Guys,
    Have you been able to come up with a solution for this?

    I basically have the same issue. I'd like to just upload images that are over 5mbs but automatically reduce the filesize to 3mbs.

    Is there a way to do that?

    Thanks

    681 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.