WordPress.org

Ready to get started?Download WordPress

Forums

WP Retina 2x
[resolved] Retina 2x + Amazon S3 (19 posts)

  1. Stuntbox
    Member
    Posted 1 year ago #

    Having trouble getting this plugin to work with the Amazon S3 for WordPress plugin (http://jameslow.com/2011/10/12/amazon-s3-for-wordpress-with-cloudfront/). Using S3 to host image assets uploaded via my wp-admin, but the Retina 2X plugin seems to run into permissions issues and the @2x images are never created in my bucket. (Please note I'm not using CloudFront. This is strictly an issue w/ server side image creation failing on S3.)

    http://wordpress.org/extend/plugins/wp-retina-2x/

  2. Stuntbox
    Member
    Posted 1 year ago #

    I should add that the @2x images are being successfully created in my local WP install. They're just not making it to S3.

  3. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry there is no support for CDNs... if you find the exact problem (and solution, that would be better) we can work on something. But I can't really try myself.

  4. djdeejay
    Member
    Posted 1 year ago #

    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 :(

  5. djdeejay
    Member
    Posted 1 year ago #

    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.

  6. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    The files aren't sent to S3 so basically I cannot do much about it. The person in charge of the other plugin can, and it is actually VERY easy. If the wp-retina-2x plugin is present, his plugin should check if there is a @2x file for each image and send them as well if it is the case. Should be very fast to implement.

    Of course if I have to do something on my side I will :)

    Do you mind contacting him and maybe bring him on this discussion?

  7. djdeejay
    Member
    Posted 1 year ago #

    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?

  8. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, I believe the plugin does that. Well, it should do a bit more :)

    The @2x images don't appear in the library, and shouldn't, they are part of the same original image, of course. When you have 4 media sizes set up in WordPress, 4 images are created. With the retina plugin, 8 images are created (depending on the settings of course). But in both case, there is only one image in the library.

    Of course the S3 plugin checks the sizes set-up in WP. Now it should also check the retina sizes as well. It's a simple addition :) I would definitely have re-forked the plugin it if I was using S3, but at this point I think somebody has to work on a perfect and stable version of that plugin... maybe you should use the most popular/active fork and make it compatible with Retina?

  9. djdeejay
    Member
    Posted 1 year ago #

    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

  10. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    I am pretty busy and I have a lot of things and support to do on the current plugin (people still asking me dreadful questions about why it doesn't work for them because of the scripts and css they use...). So at this point I can't really do that, I would have to use S3 and all for the testing, it's a bit too much.

    You could give it a try though, I am sure it is pretty easy :) It should be 3-4 lines of code to add...

  11. Brad Touesnard
    Member
    Posted 1 year ago #

    Hey guys, nice discussion. I think there's a big benefit to supporting interoperability between these plugins. Makes both plugins inherently better by saying that they work together. I'm happy to add a bit of code to support this. I've created a new task on Github. Jordy, if you could answer my 2 questions there it would be great. Thanks.

  12. Brad Touesnard
    Member
    Posted 1 year ago #

    Oh, and thanks to @djdeejay for contact me about this and giving me a heads up. :)

  13. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    Okay super I will do that right away :)

  14. djdeejay
    Member
    Posted 1 year ago #

    Don't let the conversation die out Jordy, eager to get things up and running :)

  15. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, I am a little busy but I will release a new version this week-end including a "feature" which Brad will be able to use :)

  16. ptcampbell
    Member
    Posted 1 year ago #

    Hi Jordy – thank you for your great plugin. Was just about to ask about S3/Amazon support and found this thread. Any news on the update? :)

  17. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, I am quite busy at the moment + I spilled coffee on my MacBook Retina a few days ago... so you know what happens in this case! This is unfortunately my only personal computer :(

    You'll have to hold one for now but eventually I will do it.

  18. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    I created the two actions:

    * wr2x_retina_file_added
    * wr2x_retina_file_removed

    (both send two arguments: the attachment id and the full path to the retina file)

    This version is in the trunk, and will be released a bit later. I'm making sure the new version if perfect!

  19. ptcampbell
    Member
    Posted 1 year ago #

    Jordy you are a wizard. I'm gonna check it out.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.