-
AuthorPosts
-
April 28, 2013 at 7:45 pm #187142
Hi
Where and how exactly can I make my images fit the square size of the modules? Please see attached screenshot. This is rather urgent. Im using K2.
Many thanks in advance
April 28, 2013 at 11:23 pm #491261Anyone?:((
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
April 29, 2013 at 5:41 am #491301Hi stephen,
I saw your concern via your attached snapshot. So, would you mind sending a PM with your admin account for checking it ?
I’ll help to fix & guide you how to do later.Leo
1 user says Thank You to phong nam for this useful post
April 29, 2013 at 2:54 pm #491369wow, Thank you Leo!
I have the site on Local host. Let me just upload it quickly.April 29, 2013 at 7:51 pm #491390Sent the details to you via PM
April 29, 2013 at 11:12 pm #491401Am I the only one with problem?
April 30, 2013 at 1:29 pm #491440Is there a solution or not? Im prepared to pay for it!
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
April 30, 2013 at 1:42 pm #491443Hi stephen,
I got your PM, your issue is related to the height of image in “brick brick-small” class. In order to fix it, pls put below codes into your custom.css.
.brick .brick-img img {
width: 100%;
height: 100%;
}Leo
April 30, 2013 at 4:26 pm #491466Hi, This just stretches the image. Where can I make the image a background rather as it will scale to fit and keep aspect ratio?
May 1, 2013 at 9:19 pm #491588mmmm, not good 🙁
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
May 2, 2013 at 7:15 am #491623Hi Stephen,
Yes. There are few stretched images on your Articles Category modules, but not all. I suggest you to choose the suitable layout for your modules, because the appearance of thumbnail images are based on your image’s size also.
Leo
pb66 Friendpb66
- Join date:
- May 2010
- Posts:
- 129
- Downloads:
- 23
- Uploads:
- 10
- Thanks:
- 31
- Thanked:
- 42 times in 27 posts
May 2, 2013 at 1:12 pm #491681If you really want them looking good on the front page Brick layout i’d insert the images into K2 square (ie the same width as height).
K2 will display them in a wide (cropped) format on top of your article (until you click on them).
This works… I think expecting intelligent resizing/cropping of images to the brick layout on the front page may be asking a little too much,
Regards,
May 2, 2013 at 1:25 pm #491684Actually, your idea is just not feasible. I have 8000 images that cannot be all resized square. JoomlaXTC, Gavick and Shape 5 all make the images scale properly and keep aspect ratio by making the image a background in the div. I have seen their code and now I just want to know where the code is that calls these images so I can change it to backround image and edit the brick css
How hard can this be?May 2, 2013 at 1:30 pm #491685Heres and interesting thought
http://stackoverflow.com/questions/1891857/how-do-you-stretch-an-image-to-fill-a-div-while-keeping-the-images-aspect-ratpb66 Friendpb66
- Join date:
- May 2010
- Posts:
- 129
- Downloads:
- 23
- Uploads:
- 10
- Thanks:
- 31
- Thanked:
- 42 times in 27 posts
May 3, 2013 at 12:20 pm #491809Interesting!
AuthorPostsThis topic contains 22 replies, has 5 voices, and was last updated by phong nam 11 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum