タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

PHPとImageMagickに関するakiyanのブックマーク (3)

  • How to use Imagick to merge and mask images?

    I know very little of image processing and even less of the terminology used, so please bear with me. Basically, I want to merge two images together where one of them will act as a mask. That image looks something like this: Where the blue and yellow background are both transparent in reality. This image is being used as a mask for regular photo's. Parts of the photo that 'stick out' of the circle

    How to use Imagick to merge and mask images?
    akiyan
    akiyan 2015/07/03
    アルファ値合成するときはマスク用の専用の画像が必要
  • phpでImageMagickを用いた画像変換サーバを構築(コーディング編) - 適当な日々

    webの仕事をしながら家でもwebサービスとかを作ったり作らなかったり、成長と挫折の記録・・・かもしれないインストール編はこちら さて、前回ImageMagickのPECL拡張モジュールimagick.soをインストールしたので、これを使ってPHPによる画像変換プログラムを構築してみる。 画像変換といっても色々あるので、どんな機能が欲しいかあげてみる。 サイズ(大きさ)の変更 サイズ(容量)の変更 形式の変更 URLから画像を抽出して変換⇒出力 機能は腐るほどあるみたいだけど、とりあえずこのあたりができればいいや。 んじゃ、こんな感じのURLを想定して考えてみる。 xxx.php?url=[取得する画像URL]&w=[width]&h=[height]&type=[形式(jpg,png,gifのどれか)]&q=[画像の圧縮率] 書いたコードはこんな感じ $url=$_GET['url'];

    akiyan
    akiyan 2009/03/24
    Imagick::readImageBlob($blob)
  • 画像処理についてあれこれ

    ipycanvasで図形に影をつける事ができます。影をつけるには、以下の属性でパラメータを設定します。 shadow_color : 影の色 shadow_offset_x : 影の水平方向オフセット shadow_offset_y : 影の垂直方向オフセット shadow_blur = ぼかしの大きさ サンプルコード 以下のサンプルコードは、円の図形と影を描画しています。 from ipycanvas import Canvas from math import pi canvas = Canvas(width=200, height=100) canvas.shadow_color = '#c0c0c0' canvas.shadow_offset_x = 5 canvas.shadow_offset_y = 5 canvas.shadow_blur = 5 canvas.fill_st

    akiyan
    akiyan 2008/12/19
    ImageMagick以外にもいろいろ。参考になるー。
  • 1