Jump to:

23023 Posts in 11882 Topics by 2830 members

General Questions

SilverStripe Forums » General Questions » Reviewing Silverstripe - Image upload and resize

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2
Go to End
Author Topic: 5707 Views
  • Myles
    Avatar
    Community Member
    6 Posts

    Reviewing Silverstripe - Image upload and resize Link to this post

    Hi,

    I'm reviewing Silverstripe for use in the NHS (national health service) in the UK.

    I'm concerned about simplicity for users and performance, so I'm testing out the resize image functions on a few different opensource CMS's. This, Joomla, Drupal, maybe one other.

    I tried the standard files and images tab. Worked OK, but was sad that you couldn't specify the pixel size manually and rather had to drag the corner anchors which could take half a dozen attempts to nail the correct pixel width.

    Ideally I would like something akin to the facebook image uploader (I know its a java clientside thing), but I could imagine lots of instances where users are trying to upload 3, 5, or 10mb images up for the intranet/internet. This might kill our bandwidth and server-space.

    Is there a module that has a client-side resizing tool? So we could limit images to a max of say 600px wide or high...

    I thought I saw mention of a flash uploader too.

    thanks,

    Myles

    p.s. the right-hand side image uploader failed to do anything when I clicked the 'upload' link. Tested FF£ and IE7.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Reviewing Silverstripe - Image upload and resize Link to this post

    My SWFUpload module coupled with Silverstripe's image handling could really help you out. You can read more about image handling in the SS docs, but the basic idea is this..

    Any image can have a number of formatting functions run on it at the template level. For instance:

    <% control MyImage.SetWitdth(100) %>
    <% control MyImage.CroppedResize(250,400) %>
    <% control MyImage.PaddedResize(300,800) %>
    <% control MyImage.FittedResize(640,480) %>

    etc..

    The beautiful thing is that once these functions are run once, the image is saved and cached in the filesystem, so there are huge performance gains after the first load. Also, should you ever want to change the method of resize or the dimensions of the resize, you always have your original image available, and SS will handle it. If you change a resize from 100x100 to 600x600, for instance, provided the original image was large enough, your template will get updated without any loss of quality.

    You can read more about this in the docs. For more robust image handling you can subclass the Image class and do some cool custom stuff.

    As far as the Flash-based uploading, the SWFUpload module allows bulk, asynchronous uploading through your website and CMS. Let me know if you need more info on that.

  • Myles
    Avatar
    Community Member
    6 Posts

    Re: Reviewing Silverstripe - Image upload and resize Link to this post

    Thanks Uncle Cheese

    It says in the 2.2 release notes:
    Added SWFUpload library as default method of uploading files

    I presume that's the multiple file upload that I used earlier, but looking at it again I can't see any flash in that page, just looking at the uploadiframe page-source.

    ??? cheers

    Myles

  • UncleCheese
    Avatar
    4085 Posts

    Re: Reviewing Silverstripe - Image upload and resize Link to this post

    I don't know anything about SWFUploadbeing in 2.2. It certainly isn't in 2.3. I know it was around for a while but it was incredibly buggy, so they got rid of it. Where did you see it?

  • Myles
    Avatar
    Community Member
    6 Posts

    Re: Reviewing Silverstripe - Image upload and resize Link to this post

    Well if SWFupload is buggy - what are the alternatives - if any?

    I just installed Joomla Flash Uploader and inmho it's mint. So looking for an equivalent in SS now.

    I'm on SSv2.2.3 as that was the recommended stable release this week. we have to choose a cms and launch in a short space of time so a 2.3 development version is unviable for us.

    thanks

    Myles

  • Myles
    Avatar
    Community Member
    6 Posts

    Re: Reviewing Silverstripe - Image upload and resize Link to this post

    Any offers?

    Please!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Reviewing Silverstripe - Image upload and resize Link to this post

    I encourage you to check out my new module here:

    http://www.silverstripe.org/all-other-modules/show/251905

    Seems like it might suit your needs!

  • Myles
    Avatar
    Community Member
    6 Posts

    Re: Reviewing Silverstripe - Image upload and resize Link to this post

    cheers cheese,

    might do - as an exercise, but this isn't looking great for SS in this evaluation if we can't get stable rc releases for a bulk image uploader and resizer, which in my opinion is a fundamental criteria for a simple-for-users cms.

    M

    5707 Views
Page: 1 2
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.