• OK, so I’m trying to make a little image gallery on my site and I’m linking to images that are on my domain (meaning, they’re not uploaded into my wordpress). In the HTML, I’m putting the image on the page, setting height and width attributes, and then linking that image to the actual, full-size one. (So, you’ll click on the thumbnail to see it full-size.) I don’t know why that was hard for me to explain, but I’m sure most will understand what I mean.

    Anyway, here’s the problem: I’m setting the height and width attributes to 100px for all the images, but they’re not all following my set dimensions. They’re somehow maintaining proportionality, which would be good in most cases, but I want these thumbnails to be 100×100 regardless of whether or not that’s proportional.

    Also, in the Media section of my Settings, there’s a box that can be checked or unchecked depending on whether or not you want images to follow set dimensions regardless of proportionality. It was already checked–I tried unchecking it just to see but it didn’t change anything.

    Any suggestions would be greatly appreciated! WordPress really bothers me sometimes because I feel like it thinks it’s smarter than me (if that makes any sense…). I know what I want out of the HTML I put in, but it thinks it knows what’s better for me, and usually it’s wrong. =P

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m setting the height and width attributes to 100px for all the images, but they’re not all following my set dimensions.

    That’s really bad practice and could result in some pretty awful images. Width and height dimensions in image markup are there so that the browser doesn’t have to do quite so many calculations when rendering the page. They’re not there so you can try and force images to display smaller (or larger) than the images actually are.

    lso, in the Media section of my Settings, there’s a box that can be checked or unchecked depending on whether or not you want images to follow set dimensions regardless of proportionality.

    These settings are applied when you upload images via WordPress. It’s a bit much to expect WP to apply any setting to images that are outside of WordPress itself!

    If you want 100px square images in your pages pulled from elsewhere on your server, upload the images at that size. It’s either that or get very familiar with something like ImageMagick.

    Thread Starter kuroneko-sama07

    (@kuroneko-sama07)

    Width and height dimensions in image markup are there so that the browser doesn’t have to do quite so many calculations when rendering the page. They’re not there so you can try and force images to display smaller (or larger) than the images actually are.

    I don’t see what it really matters if I want my images to display smaller–I know they’re gonna look crappy and skewed, but that’s why they’re just little thumbnails so visitors can click on them and see the actual image at it’s actual size. And, it’s my website anyway–yeah, I know I could make proper square thumbnails but I have pretty extensive galleries and quite frankly don’t have the time to do that.

    It’s a bit much to expect WP to apply any setting to images that are outside of WordPress itself!

    I wasn’t expecting that of WordPress. I just mentioned it because I honestly didn’t know if it could somehow be affecting what I was doing.

    Anyway, I just want to know if it is possible to do this with my images on my website. I wasn’t exactly looking for a lecture on the morals and ethics of placing images on the web.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Thumbnails aren’t following my set dimensions’ is closed to new replies.