Jump to content

Image resize (.jpeg)


Guest UChacker11

Recommended Posts

Guest UChacker11

I am trying to include several images with links in a table. I want to resize the images so that they don't distort the other info on the page, and to create a cleaner look. I have resized the images using <img src="location" height="40" width="40">, but for some reason the jpeg images show up as being empty white boxes with the x in the upper left corner. The bitmaps worked fine though. The syntax is exactly the same for the two different types of images but the jpegs just don't work. Is it something i'm doing wrong or can you not resize jpegs?Thanks in advance.

Link to comment
Share on other sites

You can display images at any size you want. The browser has to display it at some size, so it doesn't matter if it displays it at normal size or at a size you specify. If you are on a Linux server, the filenames will be case-sensitive, so make sure you are using the correct case. And make sure to URL-encode special characters in the filename like spaces or things like that. Also, just to point out, it's not that great to change an image to a smaller size in a page, because the user still has to download the full-size image. The browser just displays it smaller. So you can have a 1MB image, and maybe you're only showing it at 100x100, but the user still has to download the full 1MB. It would be more efficient to save the image the exact size you want to display it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...