Wordpress without Plugin? Setting breaking points and Retina?
I have been watching some of your amazing presentations on youtube, Cloudinary seems full of amazing possibilities! I do have a few questions.
A) Can I forgo the Wordpress plugin completely and just upload directly to my Cloudinary account, or do I need the plugin for the API to work? I would ideally like to host my maximum sized images on Cloudinary, and do not know if it is necessary to duplicate these images on my server, which wouldn't be ideal.
B) Unless I am reading incorrectly, I don't need to specifically call anything on the page (or do I?) to serve Retina images, this can be accomplished through the URL tags or parameters only? Or is the plugin already calling the needed JS to detect the screen resolution, and if I didn't have it, I'd need to call it?
C) I do need to call JS specifically along with adding parameters to the URL to add breaking points for mobile screens for images (set variable image widths) (if it wasn't also somehow necessary for Retina)?
It might be apparent that I'm not super knowledgeable, but I do see the possibilities. My biggest issue is figuring out a solution that serves smaller images on mobile (and adds appropriate retina support to these images when required). Doing that, and having a CDN for images and all the optimization, compression, even cropping at the same time is amazing.
-
I think I can figure this out after seeing this section of your documentation: https://cloudinary.com/documentation/responsive_images#automating_responsive_images_with_javascript
0 -
Hi Craig,
Here are the answers to your questions:
A) You can definitely use Cloudinary URL which can include transformations to get your images from Cloudinary without using a plugin.
Please note that the plugin will let you make global actions like bulk upload to Cloudinary and than you can use your regular media to get the cloudinary images.
In regard to your other questions and comment, yes that is correct, the best practice to add w_auto and dpr_auto is by adding the javascript library. you don't have to add the WordPress plugin to get the expected result image.
Please let me know if that answered your question or if you have more questions related to this matter or anything else.
0
Post is closed for comments.
Comments
2 comments