Photon: Image size
-
Hello,
I have a question regarding the image sizes when Photon is active.
I’ve noticed that this option changes the image width based on the $GLOBALS[‘content_width’].
While this is a great idea for the images located in the content area, it can cause some issues for the images that are located outside of the content area.
I am wondering if there is a solution to disable it for specific the image(s) on the page. Maybe a filter?
Here is a case:
The content width is set to 750px in the theme. The theme displays the full screen image outside of the content area (page header) using the following functions:
– wp_get_attachment_image()
– the_post_thumbnail()Since the $GLOBALS[‘content_width’] is set to 750px, the image output looks like this:
<img width="750" height="500" src="...
This image is used as a full screen image (the screen is larger than 750px). As a result, the quality of the theme does not look very good. The original image size is 1300x866px.
Thank you,
Taras
- The topic ‘Photon: Image size’ is closed to new replies.