Skip to content

Scaling Textile Image Links

June 16, 2011

This is something that has been driving me crazy; plenty of sites (including Basecamp) use Textile still, and I often want to link an image in without formally downloading it, resizing it and re-uploading it.

All the Textile examples I found all show how to display an image inline via a URL, but none of them show how to resize the image, at least not in a fashion I could make work.  Some digging finally turned this up, and I figured I’d post this here for when I forget next time, and in case it’s useful for someone else.

A plain image is linked in as follows:

!http://farm6.static.flickr.com/5306/5627310027_eb64230826_t.jpg!

Resulting in: 

To force a specific size:

!{width: 50px; height: 33px;}http://farm6.static.flickr.com/5306/5627310027_eb64230826_t.jpg!

Resulting in: 

Whoosh!

About these ads

From → Misc

2 Comments
  1. dcorreia permalink

    No more. This feature was removed.

    • soundripple permalink

      Where are you trying it? I just checked and it still works correctly on Basecamp (Classic, that is) for me.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: