Jump to:

5539 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Setting maximum dimensions for Image

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

Page: 1
Go to End
Author Topic: 351 Views
  • zard
    Avatar
    Community Member
    23 Posts

    Setting maximum dimensions for Image Link to this post

    Hi,

    I've got a simple object holding image as one of its relations via has_one, the contents are handled by UploadField.

    Is there any way to prevent upload of large-dimension images, ie a width filter? I would like to prevent running out of the memory when creating thumbnails.

    Thanks!

  • martimiz
    Avatar
    Forum Moderator
    1078 Posts

    Re: Setting maximum dimensions for Image Link to this post

    No, at the moment there is no way to restrict pixel-dimensions, only MB's. Just recently we had a discussion on the core/dev group, a couple of suggestions were made but no final solution yet. I guess we should pick this up again, or at least create a ticket.

    Discussion here, if you're interested
    https://groups.google.com/forum/m/?fromgroups#!topic/silverstripe-dev/B57a3KYeAVQ

    351 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.