タグ

pngと画像に関するkasshinのブックマーク (4)

  • PNGファイルをMacで最適化 | alifedesign

    PNGファイルをMacで最適化 このブログでは、写真にJPEG、その他は主にPNGを使っている。何となくPNGは、容量が大きくなりがちだと思っていたけど、まとめてiPhoneのスクリーンショットをアップしたのを機に最適化について調べ直した。 まず、PNGは3種類ある。Macで使っていると、保存のダイアログでPNGと出てくるので、形式は1つだけでオプションも無いと思っていたけれど、PNGには、256色のPNG-8と1677万色のPNG-24、そして、あまり使われていないようだけれど、PNG-32もある。 PNGのファイルサイズが大きくなりがちだったのは、フルカラーのPNG24が使われているからで、PNG8なら、256色でGIFとだいたい同じくらいのサイズに収まる(例外もある)。 Webの高速化を追求しているStoyan StefanovさんのImage Optimization Part 2

  • Yahoo! Smush.it™

    Smush.it uses optimization techniques specific to image format to remove unnecessary bytes from image files. It is a "lossless" tool, which means it optimizes the images without changing their look or visual quality. After Smush.it runs on a web page it reports how many bytes would be saved by optimizing the page's images and provides a downloadable zip file with the minimized image files. Do not

    Yahoo! Smush.it™
  • PNGCRUSH

    [DOWNLOAD] [CHANGELOG] Pngcrush is an optimizer for PNG (Portable Network Graphics) files. It can be run from a commandline in an MSDOS window, or from a UNIX or LINUX commandline. Its main purpose is to reduce the size of the PNG IDAT datastream by trying various compression levels and PNG filter methods. It also can be used to remove unwanted ancillary chunks, or to add certain chunks including

  • PHPでPNGやGIFの透過属性を維持したまま縮小する - mzktの日記

    class.image.phpを使って、画像を縮小していたんだけど、画像がPNGやGIFだった場合に透過属性が失われて背景が黒くなってしまう。 透過属性を維持したまま簡単にリサイズする方法を探して見つけたのがこれ。GDだけでOK。 Smart Image Resizing while Preserving Transparency With PHP and GD Library アスペクト比を維持した拡大縮小も簡単にできるすぐれもの。 widthを縮小画像の横幅、heightを0に指定すると、アスペクト比を維持するようにheightを自動計算してくれる。 サンプル:$filenameを縮小して$newfilenameに保存 $filename="./images/samle.png"; $newfilename="./images/new_sample.png"; $image=smart

    PHPでPNGやGIFの透過属性を維持したまま縮小する - mzktの日記
  • 1