Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.

Add support for retina images #20

Closed
wants to merge 31 commits into from
Closed

Add support for retina images #20

wants to merge 31 commits into from

Conversation

willmot
Copy link
Member

@willmot willmot commented May 28, 2012

Adds a new retina arg.

Set to true to enable retina images.

Currently only works for images that are passed through image_downsize.

@@ -830,6 +830,43 @@ function wpthumb_post_image( $null, $id, $args ) {
$image_src = $image->getFileURL();

}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be moved to

$html_height = $image_meta[1];
i.e. the original WP Thumbed image is working, width / height is working etc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@willmot
Copy link
Member Author

willmot commented May 29, 2012

Still todo:

Support retina images inserted into content.
Don't replace images that have been scaled down with CSS so that they are effectively retina.

@willmot willmot closed this Dec 10, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants