the fade anything technique

Problem

You want to add something flash to your site.
A color loads, which you then want to change



Solution

Well cool “Fade Anything Technique”!

Really simple implementation, just copy fade anything and then any divs, etc with an id
of fade-xxx will fade from that color. Many more options, check out these highly recommended articles.



Example



<head>
...
<script type="text/javascript" src="/fat.js">
</head>
...
<div style="width: 600px; border:1px dashed #23932B; padding: 10px;" id="fade-23932B" class="fade-23932B">
...
</div>





Resize image command line – mogrify

Problem

You want to resize images from the command line.



Solution

Use image magik mogrify command.


mogrify -resize "percentage" image_na

Also you can view current sizing – like this:


% identify IMG_3864.JPG
IMG_3864.JPG JPEG 563x422 563x422+0+0 DirectClass 8-bit 32.8887kb



Example



mogrify -resize 20% IMG_3705.JPG



Reference

[tags]mogrify[/tags]