IPB

Welcome Guest ( Log In | Register )

Movable Type

We're moving to movabletype.org!

At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!

 
Reply to this topicStart new topic
> Mt4 Thumbnails (constraining To Equal Height & Width)
johnstefan
post Feb 1 2008, 05:36 AM
Post #1





Group: Members
Posts: 2
Joined: 27-July 05
Member No.: 32,279



Hi, I have justed upgraded to MT4 and am taking this opportunity to refresh my blog. The Recent Assets module is interesting as I would like to have all my most recent images displayed down the righthand side of my blog. BUT I am not pleased about the way MT4 resizes the images into thumbnails, as it seems landscapes are cropped to 70x70, but portraits look like the are 50x70, thus giving a mix match of square/rectangles which is not too pretty. sad.gif

1. Is there a way to constain the thumbnails generated so that they are all sqaure?

2. Is it possible the have the thumbnails link to the blog they are featured in?

Thanks for any help offered.

John S.
Go to the top of the page
 
+Quote Post
danwolfgang
post Feb 1 2008, 07:48 AM
Post #2





Group: Members
Posts: 416
Joined: 19-August 03
Member No.: 14,803



I'm not aware of any way within MT to create square thumbnails. If memory serves, the base_theme.css just has the height and width of the image forced to 70 x 70px. In other words, you can use CSS to square-up the images.

No way to display the link of entry to asset. sad.gif

This post has been edited by danwolfgang: Feb 1 2008, 07:48 AM


--------------------
Dan

uiNNOVATIONS: Web development with a focus on ui and Movable Type.
Eat Drink Sleep Movable Type: featuring the Poll Position, Better File Uploader, and Hot Date plugins, amongst others.
Go to the top of the page
 
+Quote Post
tkeating70
post Jan 2 2009, 11:01 AM
Post #3





Group: Members
Posts: 18
Joined: 1-April 04
Member No.: 22,998



I believe this is exactly what you are looking for:

Related Entries with Images & Recent Assets Linked to Entries


--------------------
Go to the top of the page
 
+Quote Post
shenews
post Jan 10 2009, 03:08 AM
Post #4





Group: Members
Posts: 109
Joined: 16-August 05
Member No.: 32,509



I do a Recent Photos module on our blogs (example) that makes all the thumbnails 120 pixels wide. This gets a little funky when the original images are very long and narrow, or shallow and wide, but it usually works pretty well.

If your images all start square, they'd end up square, but I'd hate to distort horizontals and verticals to that shape.

Here's what does it:

CODE
<mt:IfNonZero tag="AssetCount">
<mt:Assets type="image" lastn="3"><br />
<mt:AssetsHeader>
<div class="widget-content">
</mt:AssetsHeader>
<ul style="padding:0; margin:8px 0;>
<li style="padding:0; margin:8px 0; list-style-type: none; align: left; border: 2px; "><a class="asset-image" href="<$mt:AssetURL$>"><img src="<$mt:AssetThumbnailURL width="120"$>" class="asset-img-thumb" alt="<$mt:AssetLabel$>" title="<$mt:AssetLabel$>" /></a></li>
<mt:AssetsFooter>
</ul>
</div>
</mt:AssetsFooter>
</mt:Assets>
</mt:IfNonZero>
<mt:If tag="AssetCount" gt="5"><a href="<$MTBlogUrl$>photos.html"><em>More...</em></a></mt:If>

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 02.09.10 - 10:42 PM