Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlexander Bromage
Courses Plus Student 4,014 PointsBlurred image in wordpress page
Hi all
Hoping someone on here can help me, I am creating a site based off wordpress for a friend and she wants a feature image on each page. Using the media tools in wordpress I have tried to add images into the content but whatever settings and image sizes I try they always come out blurred when I view the page. Anyone have an idea what I can do to get over this?
2 Answers
Rich Bagley
25,869 PointsHi Alexander,
Are you using a custom theme? If so, and you revert to a standard WordPress one, does it improve the image quality? It's possible that it could be a style overriding the image dimensions.
If this isn't the issue it may be WordPress' compression on upload. I've seen a few people mention this plugin in forums: https://wordpress.org/plugins/regenerate-thumbnails/.
Please note I haven't used this myself so you'd need to look in to it but it may be a possible solution.
Thanks
-Rich
Zac Gordon
Treehouse Guest TeacherIs it stretching the image to display at larger than it's original size?
Alexander Bromage
Courses Plus Student 4,014 PointsAlexander Bromage
Courses Plus Student 4,014 PointsHi Rich
I will checkout the plugin!
I find that if I size down the image significantly then the image in the page is made larger and gets blurring. I suspect that I need to add at a specific resolution but no idea how to find that. I am using the naked wordpress theme. I haven't customised much just a couple of lines of CSS and plenty of plugins.
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsHi Alexander,
Sounds very strange. If the image uploaded is smaller than it appears on the page it sounds as though a style could be overriding the dimensions or those you have set in the admin are larger than the uploaded image.
I would double check your media file sizes within Settings > Media. It could be that the images are being cropped to exact dimensions instead of keeping the aspect ratio.
-Rich