Tuesday 20th May 2008

by Sajith M.R

Introduction >>

Online Photoshop in PHP (Series Part 1)

As i announced in my birthday post: celebrating-1st-year-of-sajithmr.com , i am starting my post series How to make Photoshop Express in PHP

Before we starting the step by step procedure, have a look at : http://www.sajithmr.me/photoshop/index.php

This is a basic version of online photo editing tool.

You can either upload a photo to this tool or you can browse some images already supplied.

The basic features are:

  1. Crop
  2. Resize
  3. Water marking (Both logo and text)
  4. Round corner
  5. Rotate
  6. Download and save

Try yourself

Upload some picture (or browse any picture), Press crop button (top left), you can see orkut photo upload like crop there. You can select the area, or drag anywhere in the image. Press crop button in the workdesk. (Press F11 or fullscreen view for better performance )

Try all other features provided.

The whole site is divided into four parts.

  1. Tools
  2. Work Desk
  3. Browse Photos
  4. Settings

Tools area contains options for crop, resize, watermark, round, undo , save, clear all, download.

Here ‘clear all’ reset all the operations and navigate the website into initial settings.

From the Settings Area, You can fix the angle of the image. You can rotate either clock-wise or anti-clock-wise depending on the angle provided (+ve or -ve)

In Text Water Mark Setting Area, you can enter a text, set font size and font color. It generates a pictures corresponding to your text. Click water mark button in tool area and fix the position , press Apply Watermark

You can also upload your water mark logo.

Finally you can download the edited picture by clicking download button in the Tool area (top right) .

The interesting thing is the whole website / tool is created in a single day.

wanna learn how to implement this ??

Keep reading rest of the series.

In Online Photoshop in PHP (Series Part 2) >> Implementation of the Browse Photos Area

Thanks and Regards
Sajith M.R

Tags: , , , , , , , , , ,

· · · ◊ ◊ ◊ · · ·

6 Responses to “Online Photoshop in PHP (Series Part 1)”

  1. Bipin says:

    excellent

  2. priya says:

    Warning: imagejpeg() [function.imagejpeg]: Unable to open ‘temp/1405temp_Babe.jpg’ for writing: Permission denied in /home/sajithm/public_html/wwwroot/wordpress/photoshop/docrop.php on line 48

    Im new to this, but this site sonded nice, so just thought of trying. But im getting the below of this…How should i go about this?? Need help..

    (
    Warning: Cannot modify header information – headers already sent by (output started at /home/sajithm/public_html/wwwroot/wordpress/photoshop/docrop.php:48) in /home/sajithm/public_html/wwwroot/wordpress/photoshop/docrop.php on line 58

    Warning: Cannot modify header information – headers already sent by (output started at /home/sajithm/public_html/wwwroot/wordpress/photoshop/docrop.php:48) in /home/sajithm/public_html/wwwroot/wordpress/photoshop/docrop.php on line 66

    )

  3. Sooraj says:

    Great post, but I am seeing that when you re-size the picture its aspect ratio changes. Please post a way to do a re-size without a change in the aspect ratio.

  4. sarika says:

    Gr8 work . But provide it to download freely

  5. Sajith M.R says:

    Hello Binney, That is wordpress series post plugin. When i add more posts in this series , it will become part 1 of 3 , 2 of 3 etc. Since there is only one article in this series, plugin automatically shows 1 of 1.

    The only requirement is GD support.

    I used GD library only for the whole tool

    Thanks
    Sajith

  6. Binny V A says:

    At the top of the article, this is shown…
    “This entry is part 1 of 1 in the series Online Photoshop”

    part 1 of 1? Is it a typo?

    Also, what are the server requirements – are you using GD, ImageMagik or something else?

    Waiting for the rest of the tutorial…

· · · ◊ ◊ ◊ · · ·

Leave a Reply

وظائف 2011 تحويل العملات برامج برنامج تسريع التحميل برنامج الفلاش برنامج محول الصوتيات عربي hotel 2011 زيادة رواتب العساكر 1431