djdeejay
Forum Replies Created
-
Same here, stopped working for me seemingly on 17th August. Nothing from Brad?
Seems like permissions might have changed on AWS at this point to stop the plugin working.
Even on debug mode its not loading the @2x images, despite them being there if I manually change the URL…
Here’s my suggestion Jordy – obviously you can’t ignore if @2x files exist because thats fundamentally how the plugin works to see if they are created or not and looking for them on the CDN via URLs might be technically impossible (and inefficient?)
How about this then, if the image has been created by the plugin ALWAYS assume the image is still there? That way its not assuming all @2x images exist just the ones it knows its created in the past – that must be reasonably easily to implement and would be a perfect work around for this situation.
Jordy, Ive found that W3 will upload custom files automatically – it doesn’t’ do it instantly like when you put an image in the image gallery but you can tell it to upload files in a custom folder every X amount of minutes, so soon after it’ll do the retina image.
Great!
Now I’m left with one minor problem which I think you could fix easily. I don’t want all the image residing on our individual server instances once they are uploaded to W3 as it wastes space. So a cron job will delete the files every couple of days. W3 leaves the files on the CDN however – it appears that your plugin is looking for the file in its original place and then W3 rewrites the URL on the fly afterwards to the URL – however it doesn’t see the file anymore and thus doesn’t load up the @2x.
A simple fix for this might be a check box (or a way for me to hack the plugin) so it doesn’t check to see if the file still exists? Or a way to change the location it looks for the @2x files, or a way to change the URL so I can upload it to our https://cdn.url.com instead of https://url.com
See what you suggest, I’m sure there could be a simple work around even if you just have me hack the plugin somewhere.
Silly me its in the FAQ! –
$('img').each(function(){ new RetinaImage(this); });
Should have looked first, sorry! Works a treat when its in the right place of your JS file.
Now just getting these things on W3 now I have a method that works to show them – is there any chance you could fork that S3 plugin and hook it into the methods you use? Another plugin in your library and shouldn’t take too long?
Hi Jordy,
I know what you mean – although its pretty similar to the way my theme creates the different thumbnails it specifies now, which isn’t too confusing. I was the one trying to put you and the S3 plugin maker together, unfortunately he never finished his end of it ??
I knew we were using W3 caching when we launching the site so I gave up asking him and turned that on to find it does the same thing – although for me, unlikely the OP it doesn’t send the @2x images as it doesn’t see them as attachments.
How hard would it be to change this behaviour Jordy, maybe it could be a good option to turn on and off? Or if you don’t want to supply that feature could you give me an example of how we could modify it to work for us as it’ll be all automatic on user uploaded photos for us, so makes sense for us to switch it on and leave it.
Im struggling with the CORS setup too, but no point in tackling that until I know that the @2x images will be uploaded as part of the attachments automatically.
Yeah I can get W3 to upload the images to S3 if I include the upload folder where the @2x files exist, however it doesn’t’ happen automatically – only the wordpress thumbnails are uploaded automatically.
Jordy for uniform working across all instances wouldn’t it make sense for the plugin to create the @2x files as additional thumbnails so they go into the WordPress attachments media gallery properly and then are handled by all other plugins universally? Eg they can be deleted when the other attached images are deleted, in my case they would be uploaded the S3 by the W3 plugin (and any other S3 plugin) etc automatically. Currently nothing but your own plugin knows these extra files are there which means a nightmare for anything outside of basic use…
Oh further to this -my W3 doesn’t appear to be uploading the @2x to S3 @jaapstronks is your CDN pull or push?
Anyone any idea how to do this on Nginx?
Don’t let the conversation die out Jordy, eager to get things up and running ??
Ah Jordy, I totally get you now, yes that makes perfect sense.
Ok I’ve asked Brad who is in charge of the recent fork to come in, but if not, do you think you could make that adaption to the plugin? Its literally only a couple of files, I was able to adapt it earlier to use our custom pretty URL for S3 rather than the long URL Amazon generates pretty easily.
Kind Regards
I’ll do my best Jordy… Its a fork, of a fork, of a fork though thats the only problem.
As far as i know it just silently uploads everything that enters the WordPress Media Library and updates the URL with the S3 url in WordPress rather than the wordpress server url.
Am I right then in thinking that the @2x images don’t appear in WordPress Media Library?
So Jordy, I’ve been using a brand new fork of this plugin – https://github.com/bradt/wp-tantan-s3
Would there be anyway for us to work together to get it work with Retina 2x, I don’t mind paying for your time, it must be a simple enough tweak as the plugin just works directly with the WordPress Media Library so I’m surprised things don’t work straight away, anyway.
Same problem for me, which is a shame because the combination looked like the perfect solution.
Note, what Stuntbox said, S3 is not a CDN nor CDN solution, its just alternative file storage instead of using your server instance. For me I’m not even getting the @2x images because made unless I turn the plugin off completely. I guess we just can’t have this work with S3 as storage ??
Forum: Fixing WordPress
In reply to: Possible to send a custom field off for external php processing?Ha, yeah, if only I knew php!
I understand in theory what is within the realms of possibility or not and can work out long winded ways to achieve ideas, but thats about it…
…time to recruit someone on odesk I think!
Thanks!