| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
image extension is case sensitive- what to do? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Is there something I can do to get the image extension not to be case sensitive?
Most of my products have images with .jpg extension but I have a few with .JPG and those are not showing up. I can't go through each one because I have over 30,000 products. By the way, I am using the Telafirma mod for the images. Thanks
__________________
X-Cart version 4.1.10 upgraded from 4.0.13 myself slowly and with help from xcart forums. Thanks all! http://www.discountseforim.com Hebrew Seforim and Jewish Books |
|||||||
#2
|
|||||||
|
|||||||
![]() Unix is case sensitive. You can run an sql query on the database to replace the extension on everything in one swoop.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks for responding.
Is there a way to go through the images and replace the .JPG ones with .jpg? Changing it in the database only helps if I know which ones have the uppercase and which ones have the lowercase. In the database, they are all lowercase. In my image folder, most are lowercase and a few are uppercase - I just do not know which ones are which (unless I go through one by one). Thanks again
__________________
X-Cart version 4.1.10 upgraded from 4.0.13 myself slowly and with help from xcart forums. Thanks all! http://www.discountseforim.com Hebrew Seforim and Jewish Books |
|||||||
#4
|
|||||||
|
|||||||
![]() Uggg...that is a headache
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() I have a program that will batch rename files called renamer4mac, it's for mac computers you know
![]() ??hth
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#6
|
|||||||
|
|||||||
![]() I ended up running a php script that went through the directory and wrote to a file each image ending in uppercase letters.
I then took the list and imported it into a database and through a few queries, generated product codes from the image names (image 123.JPG has a product code of CR00123). I used the import products from the admin site (using the fields productcode and thumbnail) to stick the new image names into the database. I am not sure if I am too clear, but it worked and was not that complicated. Thank you for your help
__________________
X-Cart version 4.1.10 upgraded from 4.0.13 myself slowly and with help from xcart forums. Thanks all! http://www.discountseforim.com Hebrew Seforim and Jewish Books |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|