Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image upload: renaming issue
#1
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!
Reply


Messages In This Thread
Image upload: renaming issue - by b3n.ji - 2014-03-05, 22:00:48
RE: Image upload: renaming issue - by shawn_a - 2014-03-06, 01:28:16
RE: Image upload: renaming issue - by b3n.ji - 2014-03-06, 02:02:00
RE: Image upload: renaming issue - by shawn_a - 2014-03-06, 02:26:13
RE: Image upload: renaming issue - by shawn_a - 2014-03-11, 03:00:57
RE: Image upload: renaming issue - by b3n.ji - 2014-03-11, 04:01:34



Users browsing this thread: 1 Guest(s)