Hello all

I've got an odd little problem happening with an image.

It's not uploaded by a user or using any clever modules or anything, I'm simply calling it as part of a node I'm writing, using an IMG tag in HTML.

Looking in the GIMP, I can see that the actual original image is 437 by 434 pixels, 100 pixels per inch. I've previously used the same image on a plain HTML (non-Drupal) web site and there it came out the same size as the GIMP displays it, even without me setting width and height.

But when it appears on my page in Drupal, suddenly it's about 5% bigger (with correct proportions). I don't so much mind about the size in itself, but it's line art and it's now looking yuckily pixelated.

If I include "width=437 height=434" in the IMG tag, it doesn't make any difference.

If I include a class in the image tag and set "width: 437px; height: 434px" in my CSS, it doesn't make any difference.

But if I include "width=200" in my IMG tag or "width: 200px" in my CSS, it does respond to that.

(Or, one way to interpret this is that it seems to think it already is displaying at 437 x 434 when it isn't.)

I can't make sense of this behaviour. Anyone else had something similar? Anyone got any ideas about what's going on? What am I missing?

Thanks!

Jennifer

Comments

spade’s picture

Did you ever figure this out? I'm puzzled about this behaviour too.