前の記事 ≪:クッキーを使わないでブラウザに設定情報を保存できる「PersistJS」
次の記事 ≫:ブラウザ上で歌を歌わせることができる「ルーツ飲んでゴー」

画像を縮小、反転、回転させたりできるJS「Phototype」

2008年05月27日-はてなブックマーク

スポンサード リンク
[PR] 英単語を忘却曲線アプリを使って超効率よく記憶する方法
Ajaxorized Phototype: image manipulation with Javascript
Lately I had same crazy thoughts on coding a javascript wrapper to manipulate images rendered on the server-side.

画像を縮小、反転、回転させたりできるJS「Phototype」。
Prototypeではなく、Phototypeで、結構紛らわしいのですが、なかなか面白いライブラリです。



リサイズは次のように簡単。

l_oPhoto = new Photo();
l_oPhoto.resize({width:200});
document.body.appendChild(l_oPhoto.fetch());

関連エントリ

関連の記事検索:JavaScript, 画像, image
スポンサード リンク

By.KJ : 2008年05月27日 10:05 livedoor Readerで購読 Twitterに投稿

間違いの指摘をしていただける方はメール、あるいはTwitter/FBでお願いします(クリック)