4 users online. Create an account or sign in to join them.Users

Search

Not sure if an answer to this has been posted at all?

Was hoping to be able to set a maximum dimenion/resize when an image is uploaded through an upload field in the admin section.. have encountered a client who uploads images from their own clients, and they seem to be supplying 9mb image files.. A too big B JIT has issues with large images at present on my install.. to keep page rendering times down.. I would Ideally like to limit the image size and dimensions via the backend to assist a little with keeping load times to a minimum.. is there scope for this functionality on an upload field.. baring in mind I’m a light coder.. what’s the best approach?

Anyone got a solution to setting a limit on maximum dimensions for images from an upload field?

Trying to stop large images from being uploaded into sections and breaking the JIT extensions max file size issue.

EDIT

What is provided on this site is kind of what would be ideal for image cropping and resizing as we upload images symphony:

http://www.resize.it/ or http://www.resizeyourimage.com/

This differs from the Crop Image module that is floating around as it would force a certain size as the file is pulled into the system. Better from a managing images kind of way and allows a lot more control over size and shape of images required.

Merged this into your other thread. Please try not to double-post.

Appologies :) thanks czheng

I created an Advanced Upload Field extension that has the capability of resizing images before saving the file on the server.

I’m hoping to release another upload field myself, one that has delegates for pre/post processing of uploaded data, and delegates to change the publish pages and xml output.

This would give us a solid base upload field, which can then be extended with resizers, video previews and the like.

Good new all round then guys! this is the one of those missing functionalities for me with symphony.. look forward to it. :)

I’m hoping to release another upload field myself, one that has delegates for pre/post processing of uploaded data, and delegates to change the publish pages and xml output.

Sounds awesome. This should get the name Advanced Upload Field then.

@buzzomatic: Do you think of this as a new extensions? As this sounds like a real base upload field offering options to other developers something like this should be a replacement for the core field in my opinion.

A blog post is forthcoming that will partially address this question of core fields.

@klaftertief,

Do you know if I swapped out the normal upload field for an advanced upload field it would retain it’s entries? or is it gonna need to be populated from scratch? I have 120 entries or so in the section and don’t want to force a mass upload session if I can avoid it!

Do you know if I swapped out the normal upload field for an advanced upload field it would retain it’s entries? or is it gonna need to be populated from scratch? I have 120 entries or so in the section and don’t want to force a mass upload session if I can avoid it!

You will loose all the entries of the field.

But it should be possible to change the relations of your section/field/entries in your database to retain the entries. I remember a post about it but can’t find it. You should install the Advanced Upload Field extension first, modify the appropriate row in sym_fields and copy the appropriate row from sym_fields_upload' to 'sym_fields_advancedupload. But this wont’ resize the already uploaded images and won’t update the saved metadata.

Haha.. cool will give it a go on an offline copy and see how it goes :) cheers mukka!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details