Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Views: 2,510,562

Results 901 to 920 of 7,094
18 Feb 2007, 4:12 PM
#901
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Image Handler 2 (for ZC v1.3.8 ONLY) Support

parisp:

Hi there, first of all congrats on IH2 module, this should have been a core since its a must for proper image handling.

I have aproblem with images, my customer who is going to use zen-cart is going to upload 1000s of images and i am 100% sure that he is going to upload images with the same file name. was wondering if there is a quick way to make ih2 or zen-cart rename a new image upload if there is an images with the same name. I have not dound this to be an IH feature and this is very helpfull, also someting else which can be done is to rename image filenames to hold the product name. this is going to be very good for search engines.

Anyway to cut the story short is there a way which i can set IH2 or zen-cart to rename a new image file name upload if there is an image with the same name?

First off, the very nature of electronic filing renders your question of renaming images upon upload moot. Two files with the same name CANNOT occupy the same folder at the same time. It simply is not possible. Anyone that has uploaded images or files has discovered this, as will your customer.

The only way I've ever been able to get around this is to have different image folders for different categories, or whatever. BUT, you have to make absolutely sure that the path to the image for the product or model number is correct for IH2 to pull the correct image (i.e.. images/folder1/picture.jpg, or, images/folder2/picture.jpg, picture.jpg is a different image with same name in 2 different folders)

That is where IH2's brilliance comes in...It will assign a special name to the different images files it "creates" as they are placed in IH2's cache folders.

Now, in order to really be able to try and help you, we need to know WHY the customer will be uploading different images with the same name, and if there is a particular pattern to this, or, different categories, or something different about why the use of multiple images with same name.

I know this didn't help much, it wasn't supposed to. My reply is designed to draw more info from you and hopefully draw the right answers from someone that knows more than me.

18 Feb 2007, 4:32 PM
#902
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Timeril:

Hello again,

We'd like to offer a small token of appreciation to anyone who can help us out with this problem. A $25 gift certificate to either our store (www.thetoyboat.com) or Amazon.com - whichever you prefer! As I said earlier, we're really desperate - our homepage is in shambles. And while Ryk was absolutely correct - we did remove the references to Zen Cart - please understand that it was a decision that was beyond the control of the people begging for help here. We are entirely grateful to this community and for the hard work and dedication of everyone who developed the software.

Help us Obi-Wan... you're our only hope...

Tim

Go back into admin/configuration/images and reset all the values to these:

Small Image Width 100
Small Image Height 80
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 100
Subcategory Image Height 57
Calculate Image Size true
Image Required true
Image - Shopping Cart Status 1
Image - Shopping Cart Width 50
Image - Shopping Cart Height 40
Category Icon Image Width - Product Pages 57
Category Icon Image Height - Product Pages 40
Top Subcategory Image Width 150
Top Subcategory Image Height 85
Product - Image Width 150
Product - Image Height 120
Product - Image Medium Suffix _MED
Product - Image Large Suffix _LRG
Product - Number of Additional Images per Row 3
Image - Product Listing Width 100
Image - Product Listing Height 80
Image - Product New Listing Width 100
Image - Product New Listing Height 80
Image - New Products Width 100
Image - New Products Height 80
Image - Featured Products Width 100
Image - Featured Products Height 80
Image - Product All Listing Width 100
Image - Product All Listing Height 80
Product Image - No Image Status 1
Product Image - No Image picture no_picture.gif
Image - Use Proportional Images on Products and Categories 1
IH resize images yes
IH watermark small images no
IH small image filetype no_change
IH zoom small images yes
IH small image background 255:255:255
IH small image hotzone no
IH small image compression quality 85
IH watermark medium images no
IH zoom medium images no
IH medium image hotzone no
IH medium image compression quality 85
IH medium image filetype no_change
IH medium image background 255:255:255
IH watermark large images no
IH large image compression quality 85
IH large image filetype no_change
IH large image background 255:255:255
IH large image maximum width 750
IH large image maximum height 550
IH watermark gravity Center
IH zoom gravity SouthEast
Then go to IH2 admin and clear image cache. Then clear your browser cache and temporary internet files. Then see how your images look.

Let us know if that works or not.

(P.S. if it does work, please DO NOT worry about compensation. I wouldn't except any form of payment for being able to help someone in this forum as I've been helped so often by so many and all for just a thank you or a :thumbsup: )

18 Feb 2007, 4:48 PM
#903
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I forgot to mention, if your goal is to have the images on your home page all the EXACT same size, then you will have a problem. The only way to do that, even with Image Handler, is to insure that the ORIGIONAL, unedited images all have the same, or very very close to the same aspect ratio in the first place.

By this I mean, if you have one image that is perfectly square, 120 x 120, and another that is rectangular, 120 x 200, you cannot adjust one to the other without some distortion. The greater the difference in aspect ratio, the greater the distortion.

So, if you want clear, crisp images that are all perfectly the same size, they all have to have the same aspect ratio to begin with.

18 Feb 2007, 6:00 PM
#904
parisp avatar

parisp

New Zenner

Join Date:
Feb 2007
Posts:
5
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

wtashby:

First off, the very nature of electronic filing renders your question of renaming images upon upload moot. Two files with the same name CANNOT occupy the same folder at the same time. It simply is not possible. Anyone that has uploaded images or files has discovered this, as will your customer.

The only way I've ever been able to get around this is to have different image folders for different categories, or whatever. BUT, you have to make absolutely sure that the path to the image for the product or model number is correct for IH2 to pull the correct image (i.e.. images/folder1/picture.jpg, or, images/folder2/picture.jpg, picture.jpg is a different image with same name in 2 different folders)

That is where IH2's brilliance comes in...It will assign a special name to the different images files it "creates" as they are placed in IH2's cache folders.

Now, in order to really be able to try and help you, we need to know WHY the customer will be uploading different images with the same name, and if there is a particular pattern to this, or, different categories, or something different about why the use of multiple images with same name.

I know this didn't help much, it wasn't supposed to. My reply is designed to draw more info from you and hopefully draw the right answers from someone that knows more than me.

thanks about the answer, i think you did not quite understand my problem.

ok we are talking about a computer shop here, so the client is going to have for example 50s graphics cards from ATI. He is going to either scan images or get them from the internet. suppose that he adds a card named ati X800, and the image filename is x-800.jpg. he will have a lot other cards with the same gpu so even if its from another manufacturter he might atempt to try and use the same x-800.jpg filename. he wont be able to know if that file already exists, and zen cart only offers the option to over-write an image or not, which will have a side effect of having 2 diferent products with the same image if we overwrite. or it wont overwrite it and we will have a product with no-image or it will use the existing image (not sure how it behaves). What i will like to acomplish is when an image is uploaded and an image with the same filename exist is to rename the new image automatically by entering a number in front of the file name.

hope i am clear of what the problem is and what i am trying to achieve.

18 Feb 2007, 6:20 PM
#905
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

The client will have to remane the images himself. As he scans them, and saves them, he will have to assign a unique name (perhaps use the date of the scan as part of the name) before either uploading the image via ftp, or through zencart.

There isn't any other way that I know of to do that, and as a computer store owner, he should already understand that. Zen Cart/IH2 has no way of doing that right now.

18 Feb 2007, 7:06 PM
#906
timeril avatar

timeril

New Zenner

Join Date:
Sep 2006
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi wtashby,

I appreciate your help SO MUCH. I reset the images and then went to the IH2 admin and tried to delete the cache. But I got errors... ("Couldn't delete (insert filename here))... So I FTP'd to the site and deleted the cache that way. But for some reason, the images still look the same on the homepage. And if I refresh the directory in FTP, the cache is back.

So it seems like ZC or IH2 should be resizing the images and then basing the height and width attributes in the <img> tag on that. But it looks as though the <img> tag is just using a rigid 100x80 setting from the config.

I'm totally stumped! Any thoughts?

THANKS AGAIN!

wtashby:

Go back into admin/configuration/images and reset all the values to these:

Then go to IH2 admin and clear image cache. Then clear your browser cache and temporary internet files. Then see how your images look.

Let us know if that works or not.

(P.S. if it does work, please DO NOT worry about compensation. I wouldn't except any form of payment for being able to help someone in this forum as I've been helped so often by so many and all for just a thank you or a :thumbsup: )

18 Feb 2007, 8:47 PM
#907
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Timeril:

Hi wtashby,

I appreciate your help SO MUCH. I reset the images and then went to the IH2 admin and tried to delete the cache. But I got errors... ("Couldn't delete (insert filename here))... So I FTP'd to the site and deleted the cache that way. But for some reason, the images still look the same on the homepage. And if I refresh the directory in FTP, the cache is back.

So it seems like ZC or IH2 should be resizing the images and then basing the height and width attributes in the <img> tag on that. But it looks as though the <img> tag is just using a rigid 100x80 setting from the config.

I'm totally stumped! Any thoughts?

THANKS AGAIN!

Did you reset everything in your admin/configuration/images to the settings I posted earlier?

18 Feb 2007, 9:38 PM
#908
timeril avatar

timeril

New Zenner

Join Date:
Sep 2006
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Yep! I set it exactly as you mentioned. The images on the homepage are now 100x80 instead of 100x100. But what we were hoping for is that one dimension would be 100 and the other would resize to whatever made sense for scaling (e.g. 100x64 or 70x100). It was working like this until I messed it up...

wtashby:

Did you reset everything in your admin/configuration/images to the settings I posted earlier?

18 Feb 2007, 9:48 PM
#909
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Timeril:

Yep! I set it exactly as you mentioned. The images on the homepage are now 100x80 instead of 100x100. But what we were hoping for is that one dimension would be 100 and the other would resize to whatever made sense for scaling (e.g. 100x64 or 70x100). It was working like this until I messed it up...

Try this. It worked for me before:

Go to admin/tools/image handler 2

admin

then click Remove Image Handler from database and then the Delete button asking if you are sure.

Then click on Install Image Handler, click clear image cache,

Clear your browser cache and temp files, and see what happens. If that doesn't work, we may have to beg Merlin or Ajay for some help here:P

19 Feb 2007, 12:00 AM
#910
timeril avatar

timeril

New Zenner

Join Date:
Sep 2006
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I was so hopeful! But no luck... :no:

How about this, if you won't accept payment... we'll make a $25 donation to the Zen Cart project. Have any other ideas for us to try?

wtashby:

Try this. It worked for me before:

Go to admin/tools/image handler 2

admin

then click Remove Image Handler from database and then the Delete button asking if you are sure.

Then click on Install Image Handler, click clear image cache,

Clear your browser cache and temp files, and see what happens. If that doesn't work, we may have to beg Merlin or Ajay for some help here:P

19 Feb 2007, 12:09 AM
#911
timeril avatar

timeril

New Zenner

Join Date:
Sep 2006
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I'm not sure if this is relevant, but IH2 gives me error messages when I try to delete the image cache. But when I check via FTP, the files all have 777 permissions.

19 Feb 2007, 12:24 AM
#912
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

What I've suggested is what has worked for me in the past, and I'm afraid is the extent of my "expertise" on IH2:blush: . I'm sure though that someone with more knowledge will respond soon. Keep your chin up. It will get fixed one way or another.:D

19 Feb 2007, 1:43 PM
#913
timeril avatar

timeril

New Zenner

Join Date:
Sep 2006
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Thanks wtashby - I really appreciate you giving it a shot. It's kind of a weird issue. I thought IH2 would resize all images to whatever height/width we had in the images config page (in this case 100x80) and then fill in the rest of the space with a background color. But it looks like they aren't resizing. IH2 is resizing things to some small dimensions (maybe using EITHER 100 OR 80), but then the page is using 100x80 no matter what.

wtashby:

What I've suggested is what has worked for me in the past, and I'm afraid is the extent of my "expertise" on IH2:blush: . I'm sure though that someone with more knowledge will respond soon. Keep your chin up. It will get fixed one way or another.:D

20 Feb 2007, 12:29 AM
#914
justwade avatar

justwade

Zen Follower

Join Date:
Oct 2005
Posts:
206
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi Timeril,

I thought IH2 would resize all images to whatever height/width we had in the images config page

I am just curious, as I have some similar issues that need resolving.
Do you have the Google Froogle Feeder mod installed?

I have had very good luck with IH2, but just this week I added GFF and now have lost control of resizing some of my images (large popup on product page). I tried the same suggestions you just received and still have no control in the admin. I tried uploading a new image, after purging everything and reinstalling IH2 but still got the same results. But the sample images made in admin - Tools -Imagehandler- Manager show them to be of correct size, they are just not being called up for my large image properly.

20 Feb 2007, 12:51 AM
#915
timeril avatar

timeril

New Zenner

Join Date:
Sep 2006
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi Justwade,

Sorry to hear you've got similar issues. We don't have GFF installed... But if you find anything let us know and we'll do the same!

Justwade:

I am just curious, as I have some similar issues that need resolving. Do you have the Google Froogle Feeder mod installed?

20 Feb 2007, 6:53 AM
#916
aeolidia avatar

aeolidia

Zen Follower

Join Date:
Mar 2005
Posts:
166
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I've searched through this thread for the word "permissions" and I've seen two people with similar problems but no solution.

I think this may be a hosting issue because I only have one client with the problem.

All images are working fine for Image Handler except the large versions of the additional images only.

The problem is that the permissions for additional images are being set to 600 when uploaded. When we CHMOD to 644, they show up fine.

The main product image is set to 777 on upload - I don't know why the additional images aren't the same.

We've checked with the web host, but they don't think the problem is a server setting. Any tips?

20 Feb 2007, 3:51 PM
#917
ayushman avatar

ayushman

New Zenner

Join Date:
Feb 2007
Posts:
1
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hello Image Handler Users,

I have used Image Handler 2. The Image Handler is working very well in local computer. As i upload that to online i found that its not working as it is in local computer. The problem i am getting is sidebox image is working well but the main body page category picture are not working properly the image handler feature.

The Site where i have used the Image handler is :
http://kathmanduaffairs.com/

I have installed the image handler by following the exact process declared in the Readme file with the Image Handler.

Can anyone help me and suggest me the solution.

Ayushman

20 Feb 2007, 4:01 PM
#918
mcmatt avatar

mcmatt

New Zenner

Join Date:
Feb 2007
Posts:
20
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi!

After a while I got a confusing problem...

When I upload my images the're uploaded to the wrong directory. They land directly in /images

The pictures that works land in /bmz_cache

Where can I change to the right directory again???

//Mattias

21 Feb 2007, 6:17 AM
#919
mcmatt avatar

mcmatt

New Zenner

Join Date:
Feb 2007
Posts:
20
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

21 Feb 2007, 11:25 AM
#920
picci avatar

picci

Zen Follower

Join Date:
Feb 2006
Posts:
125
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I am migrating my site to a new server. The current site is running ZC 1.3.5 with Image Handler 2 v3. I did a fresh install of ZC 1.3.7 on the new server and installed the Image Handler 2 v3 module.

To move all my products to the new server I used Easy Populate. Of course this does not import/export image data that was set up through IH2.

Are there any shortcut methods which I can use to import my IH2 installed images for my products after using Easy Populate to import product data?

I know I could migrate the entire database to the new server and do an upgrade rather than a fresh install of ZC 1.3.7 but I wanted to check first.

Thank you for your support,