Find Jobs
Hire Freelancers

PHP image class modification

$30-250 USD

完了済み
投稿日: 約16年前

$30-250 USD

完了時にお支払い
I'm using the attached PHP class to resize images. One problem I'm having is that when I use the crop() function in such a way that the canvas expands/gets bigger, the new canvas has a black background. I need the class modified so that the new canvas background is always white when accessing the crop() function. To see an example -- attached [login to view URL] was transformed into [login to view URL] using code similar to this: $imgTrans = new imageTransform(); $imgTrans->sourceFile = "original_pic.jpg"; $imgTrans->targetFile = "resized_pic.jpg"; $imgTrans->resizeToWidth = 108; $imgTrans->resize(); // Should now have width of 108 and height of 35 // Now make the graphic a perfect square (108x108) $imgTrans->sourceFile = "resized_pic.jpg"; $imgTrans->targetFile = "resized_pic.jpg"; $imgTrans->crop(0, -36, 108, 72); So basically I want the class to produce exactly what is shown in [login to view URL], only with a white background on the top and bottom parts instead of black.
プロジェクト ID: 249245

プロジェクトについて

1個の提案
リモートプロジェクト
アクティブ 16年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
hello, please check the PM
$40 USD 0日以内
5.0 (196 レビュー)
6.6
6.6

クライアントについて

UNITED STATESのフラグ
Walnut Creek, United States
5.0
5
メンバー登録日:7月 7, 2004

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。