Retina quality screenshots?

I need to be able to insert screenshots (mostly cropped sections of web pages, not whole pages) into my WordPress site for instructional purposes. I have discovered the Awesome Screenshot app for Google and Chrome which does a good job of creating and annotating screenshots. What I’m unsure of is how or if I can … Read more

Retina for WordPress Posts

I was checking one of the answers here, and it says: Just create the copies of images with double size using wordpress native media settings. And then add the following code in your templates. <?php $normal = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘thumbnail’); $retina = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘medium’ ); ?> <img src=”<?php echo $normal[0]; … Read more

Get Two Sizes of Header Image

My theme uses header_image(); function to echo out a header image <img src=”…”> it is set to 200x50px with add_theme_support(…); – all good here. My problem comes when I want to get the url of retina sized version of the image. Tried get_header_image(); but it doesn’t accept any parameters so can’t pass custom size (400x100px). … Read more

Why are retina images automatically produced?

I have a wordpress site that runs Avada theme on siteground hosting. I have recently optimised all the images using shortpixel to improve pagespeed. What I am now finding is that the retina images are slowing my mobile pagespeed, and I cannot figure out how to stop the website serving them. I have tried deleting … Read more

Intersept image upload and generate retina image from source

My goal is to make a retina and non-retina image when user uploads a photo. This is doable like so: add_action(‘init’, function() { // Get the original image sizes and duplicate $thumb_w = get_option(‘thumbnail_size_w’) * 2; $thumb_h = get_option(‘thumbnail_size_h’) * 2; $thumb_crop = get_option(‘thumbnail_crop’); $medium_w = get_option(‘medium_size_w’) * 2; $medium_h = get_option(‘medium_size_h’) * 2; $large_w … Read more