Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
img="$TM_DROPPED_FILE" echo -n "<img src=\"${img#TM_DOCUMENT_ROOT}\" " sips -g pixelWidth -g pixelHeight "$img" \ |awk '/pixelWidth/ { printf("width=\"%d\" ", $2) } /pixelHeight/ { printf("height=\"%d\" ", $2) }' base=${img##*/} alt=$(tr <<<${base%.*} '[_-]' ' '|perl -pe 's/(\w+)/\u$1/g') echo -n "alt=\"$alt\"${TM_XHTML} />"
This paste will be private.
From the Design Piracy series on my blog: