Retina ready for uploaded images which are cropped
Sorry I don’t have specific code, but this is how I would do it: Define two upload sizes, one regular and one double sized for retina using ‘add_image_size’. Use the filter ‘wp_handle_upload_prefilter’ to add the extension ‘@2x’ to only images of the larger size. Then use retina .js as normal. This page as some code … Read more