Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Allowed Image Size?

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 3694 Views
  • areikiera
    Avatar
    Community Member
    26 Posts

    Allowed Image Size? Link to this post

    I've been posting here pretty often lately, so thanks for any and all help! If I could buy you all beers or coffees, I certainly would.

    I just added the Image tab to my CMS (with help from the tutorial), and I was wondering about the limitations. I uploaded a 1.7Mb file with no problems, but a 3.8Mb file didn't upload. I was wondering what the actual size limit for images was, whether in pixels or file size, so I can give my client proper instructions.

    Also, is the size limit editable? Where?

    I apologize if this question has been answered elsewhere, I couldn't find it when I searched. Thanks so much!

  • DesignCity
    Avatar
    38 Posts

    Re: Allowed Image Size? Link to this post

    Hi areikiera,

    As far as i'm aware (happy to be corrected!) Silverstripe doesn't limit the images you can upload by file size or dimensions. Any upload limits would be the limits imposed by your PHP installation. I'm not too sure how to check that on your server, but hopefuly you should be able to google it relatively easily.

    Hope it helps

  • schellmax
    Avatar
    Community Member
    126 Posts

    Re: Allowed Image Size? Link to this post

    unfortunately, silverstripe actually DOES limit your image dimensions, at least when using the image insertion panel that is opened clicking the image thumbnail in the tinymce toolbar.

    silverstripe there constrains image dimensions to a 600x600 square.

    to change this limitation, open 'cms/code/ThumbnailStripField.php', at around line 60 you find

    if($width > 600) ...

    set '600' to your required max width there.

    it would be nice to have this configurable though... ?

  • DesignCity
    Avatar
    38 Posts

    Re: Allowed Image Size? Link to this post

    Good info schellmax! I think you'll find however, that the pixel dimension limitation from images uploaded from the image insertion panel doesn't limit the size of images uploaded, rather it limits the size of the image that TinyMCE will insert into the page. The full image is uploaded as requested, but it is resized for you to 600px wide when it is placed on the page.

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