Re: Image Handler 2 Support
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Just want to make sure I understand what it is that this code resolves:
- Convert lowercase file extensions to lowercase (JPG to jpg OR PNG to png)
- If the file extension = jpeg, covert it to jpg
Am I understanding this correctly??? If so I'll add to the code, and we can all test to be sure we get the same results..
jpeg code doesn't work for me, drat I'll actually have to think about it.
Re: Image Handler 2 Support
Quote:
Originally Posted by
ScriptJunkie
Ok...because all my file extensions are uniform, here's what I did to prepare my site to test this bit of code change:
For the images on
this page, I used FTP to make the following changes:
- main image file extension kept as .jpg
- first additional image file extension changed to .JPG
- second additional image file extension changed to .jpeg
- cleared the bmz_cache folder
- uploaded the new file you FTP'd over (which, except for the comments you added, is identical to the changes I made based on this thread discussion)
Then I cleared the browser cache and relaunched the browser. Went to the above page and no additional images show.
Did you make a change to more than one file? (I didn't upload the entire package...just the ih_manager.php file)
the changes mentioned, only effect images uploaded via image handlers add additional image thingie in admin, it doesn't touch any files that have been ftpd.
for instance if you upload an image called bob.JPG (via the additional images) it will be renamed to bob.jpg
actually I wonder what happens if you first product image added in the add products section is bob.JPG
-------------------------------------------Edit
Problem
if your first image is .JPG, then the code addition will make your next image you add (via additional images) a .jpg, and therefore invisible in the store
Re: Image Handler 2 Support
Quote:
Originally Posted by
nigelt74
the changes mentioned, only effect images uploaded via image handlers add additional image thingie in admin, it doesn't touch any files that have been ftpd.
for instance if you upload an image called bob.JPG (via the additional images) it will be renamed to bob.jpg
actually I wonder what happens if you first product image added in the add products section is bob.JPG
I wanted to try and test that (delete the images and re-upload via IH's image uploading functionality...but before I can do it, I have to change the file extensions on my computer. BUT, when I try and do that, windows insists on putting them all back to .jpg...i.e. when I take a .jpg file and rename it .JPG, Windows defaults it back to .jpg.
Grrrr
Re: Image Handler 2 Support
I install serval ZC139 for this module 2.0 Rev 8d
most of them can't work!! The install is very simply, I don't know why they can't work. admin setting is correct.
Best Regards,
Re: Image Handler 2 Support
Quote:
Originally Posted by
sunrise99
I install serval ZC139 for this module 2.0 Rev 8d
most of them can't work!! The install is very simply, I don't know why they can't work. admin setting is correct.
Best Regards,
1) Provide a link
2) Explain what is not working
3) Did you rename all the Your_template directories to match the name of your template
Re: Image Handler 2 Support
Quote:
Originally Posted by
sunrise99
I install serval ZC139 for this module 2.0 Rev 8d
most of them can't work!! The install is very simply, I don't know why they can't work. admin setting is correct.
Best Regards,
Quote:
Originally Posted by
nigelt74
1) Provide a link
2) Explain what is not working
3) Did you rename all the Your_template directories to match the name of your template
What nigel said.. Which is pretty much the same thing I told you when I replied to your initial post here:
http://www.zen-cart.com/forum/showpo...postcount=6703
Telling us "it's broken" tells us nothing.. You need to go back over the readme, check your install and then come back and provide DETAILS as nigel has suggested..
Re: Image Handler 2 Support
Quote:
Originally Posted by
nigelt74
jpeg code doesn't work for me, drat I'll actually have to think about it.
Quote:
Originally Posted by
nigelt74
Problem
if your first image is .JPG, then the code addition will make your next image you add (via additional images) a .jpg, and therefore invisible in the store
**nods in agreement** so I will be rolling both of those changes back..
Re: Image Handler 2 Support
Okay.. I rolled back the JPEG change, but the case change I have no problem working regardless as to which image was uploaded first. If the 1st image uploaded is uppercase, it converts to lowercase, and vice versa..
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Okay.. I rolled back the JPEG change, but the case change I have no problem working regardless as to which image was uploaded first. If the 1st image uploaded is uppercase, it converts to lowercase, and vice versa..
Not if the first image is uploaded via the "add new product" page, the image in that case will retain its case.
So your main image is bob.JPG (uploaded via the new product page)
when you add an additional image it will be named
bob_01.jpg
Which won't show up in the storefront because the extension is a different case
But i've just emailed you an alteration that will make all uploaded additional images have the same extensions (providing they are the same filetype)as the main image for that product.
So if your base image is bob.jpg
And you upload the additional image bill.JPEG it will be renamed to bob_01.jpg
or if your base image is bob.jpeg
And you upload the additional image bill.JPG it will be renamed to bob_01.jpeg