VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: bestcons on September 30, 2018, 12:10:04 PM

Title: Image names ending with full stop (dot) before extension .jpg missing full size
Post by: bestcons on September 30, 2018, 12:10:04 PM
 I became aware that in Virtuemart the product images names with a dot before the extension .jpg (so "image name"..jpg) are not shown in the full image albeit in the thumb image. Rather the image with the text "Product Image Unavailable" is seen. Clicking on this image brings up the original image, but visitors are not aware of this work-around. This problem never showed up in the past.
I use Virtuemart 3.4.0 and Joomla 3.8.12.
Title: Re: Image names ending with full stop (dot) before extension .jpg missing full size
Post by: StefanSTS on October 05, 2018, 22:48:02 PM
The reporting function is to report spam not to push your questions to the moderators to answer.

Please do not do that in future.

Thank you.
Stefan

Title: Re: Image names ending with full stop (dot) before extension .jpg missing full size
Post by: jjk on October 05, 2018, 23:28:11 PM
I think you shouldn't use additional dots in your filenames. Some browsers and operating systems probably will have trouble to interpret such filenames correctly.
Title: Re: Image names ending with full stop (dot) before extension .jpg missing full size
Post by: bestcons on October 06, 2018, 07:29:41 AM
We have done this for years without any problem. In the meantime the website, belonging to an association, has a collection of over 10.000 images, partly containing images wit names including double dots.
My gutfeeling says it is a VM bug, hence I posted our problem in this Forum.
Title: Re: Image names ending with full stop (dot) before extension .jpg missing full size
Post by: jjk on October 06, 2018, 23:05:26 PM
If I'm not mistaken, double dots in an image file name get stripped for security reasons by VM in the file mediahandler.php. However, that code has not been changed for years. The association should better stick to the naming conventions for files. If you need to rename a lot of such files, you could use a free tool like www.bulkrenameutility.co.uk.
Title: Re: Image names ending with full stop (dot) before extension .jpg missing full size
Post by: bestcons on October 07, 2018, 10:38:40 AM
Three remarks.
1. The (historical) association presents a.o. old postcards. The convention is to use the front text as name, after which the extension is added. This text is also shown in the short description. So names ending with a dot differ from the ones without dot. Where this is too limited, a sequence number (x) is added. So renaming is in fact not an option, it would ruin the whole system :-(.
2. The thumb images with double dot are present. Clicking for the details brings up "Product Image Unavailable". However clicking on this Image brings up the expected enlarged image. So all the data are available.
3. The association also describes farmhouses en presents these in most cases with multiple images. In the image name sometimes abbreviated "without date" is added (in Dutch z.d.). This als leads to images with names including double dot. However these additional images are shown without any problem.