EZ thumbnails

Locked

Started by paulm on 2 Oct 2006, 11:16 PM · Views: 13,691

Results 21 to 40 of 48
This thread is locked. New replies are disabled.
14 Sep 2007, 11:13 AM
#21
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

EZ thumbnails

Thanks for the feedback dinosoup,

dinosoup:

However, I found something, not sure if it's a bug or intentional. When I set "Image - Use Proportional Images on Products and Categories" to false in the backend, then EZ thumbnails does not seem to kick in.I took a quick look, and it seems like it's intentional.

This piece of Zen Cart core code in html_output.php disables the hook to external image handlers (like EZ thumbnails)

    // use old method on template images
    if (strstr($src, 'includes/templates') or strstr($src, 'includes/languages') or PROPORTIONAL_IMAGES_STATUS == '0') {
      return zen_image_OLD($src, $alt, $width, $height, $parameters);
    }
```And when the hook is disabled EZ thumbnails is disabled too.
14 Sep 2007, 11:52 AM
#22
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: EZ thumbnails

Or maybe disabling the hook is an unintentional side effect (the formentioned code disables it indirectly). In that case it seems more like a bug after all. I don't know a good reason why external image handlers should not handle non proportional images. Maybe it's an easy way to prevent division by zero issues?? (when image with or height settings are 0)

If you know a little PHP and are not afraid to experiment, you can try what happens when you edit the zen_image() function to allow it to use the image handler hook even when the "PROPORTIONAL_IMAGES_STATUS == '0'".

15 Sep 2007, 9:39 PM
#23
dinosoup avatar

dinosoup

New Zenner

Join Date:
May 2007
Posts:
17
Plugin Contributions:
0

Re: EZ thumbnails

Thanks for your reply paulm. I tried what you suggested, and no problem so far.

26 Oct 2007, 12:51 PM
#24
kthompson avatar

kthompson

New Zenner

Join Date:
Jul 2007
Location:
Minneapolis, MN, United States
Posts:
71
Plugin Contributions:
0

Re: EZ thumbnails

Anyone know if this can work with the "swap images on mouseover" mod

I dont care what it says next to my name. I've been Zenned!

19 Nov 2007, 9:23 AM
#25
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: EZ thumbnails

In the readme of this basic image handler I mentioned that someone reported that the script didn't handle the Zen extra images. But today I run a quick test on a fresh 1.3.7.1 install, and it looks like thumbnails of the extra images are created without any problems after all.

(I still don't use the Zen extra images myself, so I may be overlooking something.)

30 Jan 2008, 11:28 AM
#26
thomasharding avatar

thomasharding

Zen Follower

Join Date:
Sep 2007
Location:
Manchester, England
Posts:
168
Plugin Contributions:
0

Re: EZ thumbnails

Hey,

First of all, your mod is fantastic, when it works. We get soo many idiotic clients using massive images for products. Really takes the pee.

Anyway, on to the 'when it works' part:

I upload your script to my server and it works fine sometimes. For some reason or other at times, the page with a certain image on acts as if it has had an 'exit;' function placed on it.

I carefully looked over which type of images cause this, but it's seemingly random. I've tried images over 3mb, some work. Some under 100k work. It just doesnt make any sense.

Very annoying!!

Your help would be much appreciated.

Tom

10 Feb 2008, 2:27 PM
#27
gamer avatar

gamer

New Zenner

Join Date:
Aug 2007
Posts:
25
Plugin Contributions:
0

Re: EZ thumbnails

Works great.... At first my images would not show up the new products page. But after a minute or so and couple of refreshes..it works great.

12 Feb 2008, 8:19 PM
#28
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: EZ thumbnails

@thomasharding: I can not reproduce the issue you describe, an url might help.

@Gamer: thanks for the feedback (and the images were probably cached by your browser at first).

20 Mar 2008, 5:43 PM
#30
dougware avatar

dougware

New Zenner

Join Date:
Mar 2008
Posts:
13
Plugin Contributions:
0

Re: EZ thumbnails

Can anyone comfirm this works in 1.3.8?

I've installed it, but it doesn't seem to generate the thumbs.

Thanks,
Doug

25 Mar 2008, 7:43 PM
#31
madfastride avatar

madfastride

Zen Follower

Join Date:
Feb 2007
Location:
Earth
Posts:
115
Plugin Contributions:
0

Re: EZ thumbnails

DougWare:

Can anyone comfirm this works in 1.3.8?

I just installed it on my testing server on a clean copy of 1.3.8 and on a modified live copy of 1.3.8 (No previous instillation of IH2). And it works great, thanks paulm. One thing I'd check for DougWare is that the images/thumbnails/ file has been created and can be written to. For easy use set Line 9 in includes/extra_configures/ezthumbnails.php to 'false' instead of 'true'. That could also be holding you back. After making sure all the folders were automatically created (loading every page I have, might be too troublesome for a larger site) I reset it to 'true'.

Hope that helps.
Emiliano Jordan

Template Cascade: A Zen Cart Design Blog

Discussing Zen Cart design, Modules and functionality...

26 Mar 2008, 8:01 AM
#32
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: EZ thumbnails

madfastride:

For easy use set Line 9 in includes/extra_configures/ezthumbnails.php to 'false' instead of 'true'.Yes. And probably you can leave it set to 'true', the reason that it's false by default is that I think it depends on the server if you actually need to set it to true. But it's more important to make the files and directories themselves unwritable again afterwards. Which is not typically related to this script, but just following a general advise as mentioned in Important Site Security Recommendations.

26 Mar 2008, 1:34 PM
#33
dougware avatar

dougware

New Zenner

Join Date:
Mar 2008
Posts:
13
Plugin Contributions:
0

Re: EZ thumbnails

I fixed it!

I had to enable proportional images, which then broke my cart. I discovered that it was because apparently I was missing gd and php-gd. Now I'm good to go.

Thanks

12 May 2008, 1:50 PM
#34
rlparker avatar

rlparker

New Zenner

Join Date:
Jan 2008
Posts:
45
Plugin Contributions:
0

Re: EZ thumbnails

Hi does any one know how to. or if its possible, to generate the ez thumbnails for any additional product images?

is there a function I can call? Or is there a bit of the code I can take and add to my additional images method?

All help/ideas greatfully received as this is the last bit I have to get working to finish my clients site and they are driving me crazy about it!

9 Jun 2008, 6:48 AM
#36
thomasharding avatar

thomasharding

Zen Follower

Join Date:
Sep 2007
Location:
Manchester, England
Posts:
168
Plugin Contributions:
0

Re: EZ thumbnails

elgrcg:

Hi,
I just installed, and have a problem. I'm not getting any thumbnail images, just the alt text. If I click the larger image option, I do get the larger image.
Any ideas?

Thanks:(

Have you set the permissions on the images/thumbs directory to 777?

Thats a rookie mistake normally :wink:

21 Jun 2008, 2:28 PM
#38
pegog avatar

pegog

New Zenner

Join Date:
May 2008
Location:
Mount Colah, NSW, Australia
Posts:
49
Plugin Contributions:
0

Re: EZ thumbnails

I've installed all the files as described and changed the folder to read write as suggested, however I still have no thumbnails being created.

I'm using 1.3.7 so it should work ok.

Anyone else had a problem with this?

Thanks

6 Jul 2008, 2:47 PM
#39
thomasharding avatar

thomasharding

Zen Follower

Join Date:
Sep 2007
Location:
Manchester, England
Posts:
168
Plugin Contributions:
0

Re: EZ thumbnails

Actually I'm getting an issue right now with a client of mine..

Keep getting this warning message:

Warning: mkdir() [function.mkdir]: No such file or directory in /home/fhlinux148/f/finefossils.com/user/htdocs/store/includes/functions/extra_functions/ezthumbnails.php on line 64

Warning: chmod() [function.chmod]: No such file or directory in /home/fhlinux148/f/finefossils.com/user/htdocs/store/includes/functions/extra_functions/ezthumbnails.php on line 65

Scattered about the place. It's not creating the subdirectories for some reason and everything is chmodded perfectly.

The guy who I'm working with has created pretty much a subdirectory for each product, could this be causing an issue?

Thanks bud!

7 Jul 2008, 10:20 AM
#40
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: EZ thumbnails

The script works on a default Zen Cart install and that also has images in subdirectories. Maybe there there is something special with the names of the subdirectories? Can you post or PM a link to the site? (edit: n.m., already found it, do not see why it would not work though)