2014-03-05, 22:00:48
Hi all,
I'm just running into some problems here with the file upload script.
For a customer project I need to ensure that all images uploaded are also available in Retina high resolution. As per Apple's specifications this can be achieved by having the exact image in two different resolutions:
One with the standard resolution and one high resolutions version of the same, which is named like: picture@2x.jpg
With this basics I have a jQuery script checking for the device resolution. If it's a Retina, it will automatically search for the @2x version of the image in the same folder.
My problem is that the upload script is stripping off the @ while uploading and I am not able to get this solved by myself. I found the functions 'clean_img_name' and 'to7bit' in admin/basic.php which seems to be the right place, but by removing the @ and/or trying some other things, I am not able to get this solved.
As this is just for this specific project and I need to ensure the customer is easily able to upload images by themselves, can anybody help me modifying the script?
Thanks in advance!
I'm just running into some problems here with the file upload script.
For a customer project I need to ensure that all images uploaded are also available in Retina high resolution. As per Apple's specifications this can be achieved by having the exact image in two different resolutions:
One with the standard resolution and one high resolutions version of the same, which is named like: picture@2x.jpg
With this basics I have a jQuery script checking for the device resolution. If it's a Retina, it will automatically search for the @2x version of the image in the same folder.
My problem is that the upload script is stripping off the @ while uploading and I am not able to get this solved by myself. I found the functions 'clean_img_name' and 'to7bit' in admin/basic.php which seems to be the right place, but by removing the @ and/or trying some other things, I am not able to get this solved.
As this is just for this specific project and I need to ensure the customer is easily able to upload images by themselves, can anybody help me modifying the script?
Thanks in advance!