Jump to content



Photo
* - - - - 1 votes

Dynamic Image Resizer


  • Please log in to reply
7 replies to this topic

#1   rescuestat

rescuestat
  • Members
  • 155 posts
  • Real Name:Frank
  • Gender:Male

Posted 18 August 2009 - 10:34

This is the support thread for the Dynamic Image Resizer.

Several contributions have been created to allow for different sizes/thumbnails of product images. These have all seemed to create tremendous amounts of extra labor especially when several hundreds or even thousands of product images are needed.
What this contribution allows is to have a single large product image that is dynamically resized on your website prior to downloading to the visitor. Why download a 2-3Mb picture when only a 3-4K thumbnail is needed or have 3 different sizes when only one is needed.
This contribution is written to work with all osCommerce 2.x versions and with only a single change to be compatible with osCommerce 3.0.

I've tried to make this contribution as simple of a cut/paste operation as possible, and also make it portable to any version of osCommerce. If anyone encounters any problems let me know and I'll update the contrib as quickly as possible.

The only limitation discovered so far involves GIF and PNG images, sometimes during the resize process the optimized PNG image may actually be upto 3x's the original GIF image size. This is due to PNG's inherit lossless image quality, this is still be worked on and will be addressed in future versions. As of now, GIF and PNG images are not optimized but it is coded to handle them if so desired.

Thanks,
Frank
PS: This is my first contribution, but won't be the last.
Added: Contribution thread... http://addons.oscommerce.com/info/6941

Edited by rescuestat, 18 August 2009 - 10:38.


#2   spooks

spooks
  • Members
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 18 August 2009 - 10:46

is'nt this just doing the same as oscThumb, but with less functionality?
Sam

Remember, What you think I ment may not be what I thought I ment when I said it.

Contributions:


Auto Backup your Database, Easy way

Multi Images with Fancy Pop-ups, Easy way

Products in columns with multi buy etc etc

Disable any Category or Product, Easy way

Secure & Improve your account pages et al.

#3   rescuestat

rescuestat
  • Members
  • 155 posts
  • Real Name:Frank
  • Gender:Male

Posted 18 August 2009 - 12:56

is'nt this just doing the same as oscThumb, but with less functionality?

Actuallut not familiar with oscThumb, this is something I wrote quite sometime back and just thought I'd clean it up and post it for anyone to use. If there's something better than by all means use it. That's what we're all here for, is to make osC better.

#4   spear

spear
  • Members
  • 30 posts
  • Real Name:spear

Posted 07 October 2010 - 13:59

I just tested it. It works good, but:
1. It doesn't recalculate the height after resizing. It just follow what is set in the admin panel and the result is an ugly thumbnail
2. If the image is GIF it can't process it

Edited by spear, 07 October 2010 - 14:00.


#5   ms35d4

ms35d4
  • Members
  • 60 posts
  • Real Name:mir

Posted 24 March 2011 - 17:07

Hello

Thnak you for taking time to read this.

Ok I am trying to install and configure

Dynamic Image Resizer add on.

However I am getting this errors on the site

Warning: exif_imagetype(images/52428.jpg) [function.exif-imagetype]: failed to open stream: No such file or directory in /home/MYDOMAIN/public_html/includes/functions/html_output.php on line 82

Warning: filesize() [function.filesize]: stat failed for images/52428.jpg in /home/mydomain/public_html/includes/functions/html_output.php on line 102

I have changed after home/ to my domain


Also for products with no images the image_not_available.jpg is not displayed causing the ex VAT price that I have to be displayed under the location where the image should be instead to the right of the image location,

I dont understand why this is happening would be great if someone can let me know why I am getting these messages.

Kind Regards

#6   cmakynen

cmakynen
  • Members
  • 54 posts
  • Real Name:Chris

Posted 19 May 2011 - 17:55

Hi Frank,
I've installed the contribution and it was super easy to do. However, I am getting the "Image not found" image on all my jpg files - interestingly, it seems to know the general dimensions of the image that it's not finding, because they are all appear with slightly (and correctly) different displayed sizes of the "Image not found" - have you any thoughts on what might cause this?
Test site is here http://www.classicbi...s.com/catalogus

Thanks
Chris S.

Edited by cmakynen, 19 May 2011 - 17:55.


#7   dollcreator

dollcreator
  • Members
  • 20 posts
  • Real Name:Marianne

Posted 21 July 2011 - 21:38

Hi Frank,
I've installed the contribution and it was super easy to do. However, I am getting the "Image not found" image on all my jpg files - interestingly, it seems to know the general dimensions of the image that it's not finding, because they are all appear with slightly (and correctly) different displayed sizes of the "Image not found" - have you any thoughts on what might cause this?
Test site is here http://www.classicbi...s.com/catalogus

Thanks
Chris S.


I am running into the same problem. Has anyone figured what causes this? All my images come up with 'image not found'. The images appear in the preview on the admin page, but only in thumbnail size.
I guess I'll have to uninstall this, and manually resize the images to get them to show up properly, since the product images were humongous and not resizing at all before I installed this.

Thanks,
Marianne

#8   AT&E

AT&E
  • Members
  • 5 posts
  • Real Name:Antti Taskinen

Posted 01 March 2012 - 16:06

Hello Frank,

Thank you for your contribution. I've tested it and just one little problem occurs.

How can I prevent this on my site: Warning: exif_imagetype(images/someimage.jpg) [function.exif-imagetype]: failed to open stream: No such file or directory in ...

in html_output.php $img_type = exif_imagetype($src); returns error if image don't exists??


Yours,
Antti