-
AuthorPosts
-
edanzer Friend
edanzer
- Join date:
- December 2008
- Posts:
- 3
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
February 28, 2009 at 4:55 pm #138674Hi,
I’ve been browsing for a few hours now and I’ve read most threads on image resizing. I haven’t found a solution yet. The frontpage on my site (http://www.slrgeek.com) is resizing images according to both the length and width set in the Frontpage News module. So regardless of the dimension of the original images (landscape, portrait, etc), if I set the image dimensions in the Frontpage news to 250X250, I get a square image of precisely 250X250.
If I set it 255X170, I get a landscape size image. If the original was a portrait image, it just stretches it to 255X170. The images just get distorted.
In previous posts, I’ve read that if you set the image dimensions to 300X300, it will resize an image original of 600X400 to 300X200. That is, it treats the image dimensions as MAXIMUMS, rather than precise width settings.
That’s exactly what I want, it’s just not working like that. Am I missing something?
Erick
edanzer Friendedanzer
- Join date:
- December 2008
- Posts:
- 3
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
February 28, 2009 at 5:12 pm #293935Think I just fixed it myself. Just added a
width: 250px;
to the appropriate place in the frontpage css page. That seems to be working. Let me know if I’m going to create any unanticipated problems by doing so. Thanks,
Erick
nigelmaine Friendnigelmaine
- Join date:
- September 2008
- Posts:
- 71
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 38
- Thanked:
- 3 times in 1 posts
March 23, 2009 at 1:41 pm #297446What file did you change and which line was it. I am also having problems with resizing on the Front page.
Many Thanks
edanzer Friendedanzer
- Join date:
- December 2008
- Posts:
- 3
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
March 23, 2009 at 2:07 pm #297449Hi,
In ja.news.fp.css, adjust the code for #jazin-hlfirst img. My original solution above created some other formatting issues. So I’ve since adjusted it to look like this:
#jazin-hlfirst img {
margin: 0 0 10px !important;
padding: 0 !important;
max-width: 250px;
height: auto;I did the same thing with the smaller images that appear in the shorter headline articles with the following:
#jazin-hlnext .jazin-content img {
float: right;
padding: 0;
margin: 5px 0 5px 15px;
width: 125px;
height: auto;In both cases, the only thing I’ve change from the original is to add the width: and height attributes. That seems to be working well. Good luck. E
1 user says Thank You to edanzer for this useful post
cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
March 23, 2009 at 9:33 pm #297528<em>@edanzer 119612 wrote:</em><blockquote>Hi,
In ja.news.fp.css, adjust the code for #jazin-hlfirst img. My original solution above created some other formatting issues. So I’ve since adjusted it to look like this:
#jazin-hlfirst img {
margin: 0 0 10px !important;
padding: 0 !important;
max-width: 250px;
height: auto;I did the same thing with the smaller images that appear in the shorter headline articles with the following:
#jazin-hlnext .jazin-content img {
float: right;
padding: 0;
margin: 5px 0 5px 15px;
width: 125px;
height: auto;In both cases, the only thing I’ve change from the original is to add the width: and height attributes. That seems to be working well. Good luck. E</blockquote>
Can you check with browser check site if this will be compatible with Internet explorer, it requires both attributes to be specified.
I think it may run counter to optimization policies. To lay the structure of a page, you need to know the attributes of the components. Without a height, that is not possible, the server system must compute this for you before the area can be assigned.. Thus, in some browsers (please check with IE), it may still load, as you observed. However, it might be slower.. You will observe this as slow loading modules, that will change the size (move the page) once the system has figured out the height,
This is pure speculation though, but I tested a site where I just copied an image from my Flickr site, the image description just gave the width, and that was one of the comments in the optimization — height not specified.
Cornelio
-
AuthorPosts
This topic contains 6 replies, has 4 voices, and was last updated by omar_ali 15 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum