Active
Project:
CloudFront
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2010 at 19:06 UTC
Updated:
2 Feb 2011 at 01:22 UTC
It doesn't appear that light box URL's are being rewritten although the imagecache preset for the lightbox image is being uploaded to S3 properly.
Comments
Comment #1
hozt commentedI was able to reproduce the issue when using lightbox2. I did not track down the exact problem, but most likely we will have to create another theme override that changes the url of the href when lightbox2 is enabled.
Comment #2
dmurray commentedOk great, For mine and probably a lot of sites I think think the imagecache preset that people use with the lightbox2 image probably has the largest file size and would benefit the most from being able to be served through CloudFront.
Comment #3
dmurray commentedI don't know a whole lot of PHP but to do this would it require editing this part of the module and adding an if statement to recognize when the class of the url is set to lightbox-processed?
Comment #4
hozt commentedI believe we will need to override this before it gets to imagecache possibly by using theme_preprocess_content_field.
The file will also be served locally if you link to the file without using imagecache. I will poke around further this week and hope to have a solution soon.
If anyone has any other thought on this or a patch, send it in!
Comment #5
dmurray commentedThanks for your help it's greatly appreciated!
Comment #6
dmurray commentedwill this be fixed in the next release?
Comment #7
dmurray commentedThis is an example, I cant seem to get it to serve from cloudfront.
Comment #8
hozt commentedCan you confirm if the image is lightbox image is getting uploaded to amazon?
Comment #9
dmurray commentedYes I can confirm that it is being uploaded, it just not being rewritten on the page to point to the. Amazon image.
Comment #10
krisrobinson commentedsubscribing