Reset upload height and width on images

4 posts by 2 authors in: Forums > CMS Builder
Last Post: July 28, 2010   (RSS)

By garyhoffmann - July 27, 2010

Hello,

I have an upload "field" within a section. This upload field was incorrectly set to auto resize the pictures too small. I still had the original images, so no problem there.

However, I have 4 "info" fields on each image, so I don't really want to re-upload them because I'd have to redo the info fields.

So, I used FTP to re-upload the images into the uploads directory. However, the upload field still thinks I have the small pictures when I look at the $upload['height'] and width fields.

Is there a way to reset these from the actual images?

Thanks,
Gary.

Re: [garyhoffmann] Reset upload height and width on images

By Jason - July 28, 2010

Hi Gary,

Unfortunately, there is no easy way to actually resize the physical image once it's been uploaded. Re-uploading would be the solution that would get the best results.

Some other options would include:
-hardcoding in height and width in your pages
-using SQL to change the height and width values inside the database. (This should only be attempted if you're comfortable with SQL as it could cause a lot of other problem if not done correctly. ALWAYS make a backup of your data before trying this).

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [garyhoffmann] Reset upload height and width on images

By Jason - July 28, 2010

Hi Gary,

That's great that you got that working. Really good solution!

I'll make sure that gets onto our requested features list.


Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/