Skip to content

atharvapatil123/Image-Editor-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Members:

1) Atharva Patil

2) Sahil Kedare

ABOUT PROJECT:

Our project topic is an IMAGE EDITOR WEBSITE and we have named it CHITRAKALA . This image editor website consists of 3 different section to which we can navigate with the help of navbar. The three different pages are Home section, About Us section and Contact section.

1. Home :

The home section starts with a button displaying “Get Started”, which will direct the user to the Image editor section. After that we have three cards which display the process of image editing. Then there is a section which describes all the editing features that we have used in our image editor like grayscale, contrast, saturate and many more. We have used image transition to show how the specific editing feature works and have provided a short description for it as well. After that comes the main editor. Here we have a Canvas in which a user can upload the image he wants to edit with the help of choose button. On the left, there are various sliders and buttons which the user can use to edit the image. After applying the desired editing filters, the user can click on the Download button to download a copy of the edited image and save it. If the user wants to revert back to the original image then he/she can click on the Reset button and if the user wants to upload a new image on the canvas he/she can click on the Clear Canvas button which will clear the canvas, after that he/she can click on the choose button to select new image.

2. About Us :

Here we have some information about the contributors to this project i.e about Atharva and Sahil with our photos and details.

3. Contact Us:

In this section we have a contact form. The user can contact us via this form and if they have any valuable feedback for us, they can provide us with the help of this form. To the left we have provided the basic details like email, phone number and address. At the end of each page there are icons which are linked to our social media accounts of Instagram, facebook , linkedIn and Github.

4. Outcome :

This website enables the user to add multiple combinations of different filters provided in the editor section, to the images they upload and then download the same.

TOOLS USED :

We have used HTML, CSS AND JAVASCRIPT for making this website. We have implemented all the editing features and the logic used for implementing these features like saturate, contrast, invert etc using java-script only. Also, we have used simple image library for drawing the image to canvas. For the frontend part, we have implemented everything using simple HTML, CSS and JS, involving different sets of animation used, transitions given to particular blocks, fixed navbar and many more. For the backend part, we have a contact form in the contact section, which is linked to a google form, and any response recorded will be stored automatically in an excel sheet via this form. So, we have all the necessary information and valuable feedbacks of the users who fill this form.

FLOW OF PROJECT:

At the top there is a navbar with which user can navigate to home, about us and contact us pages. The “Get Started” button at the top of the home page takes the user to the editor section.

Functions used:

We have tried to explain the functions in simple and easy-to-understand language : What is RGB ?

The RGB color model is an additive color model in which red, green, and blue light are added together in various combinations to reproduce a broad array of colors. Their values range from 0 to 255 respectively. When 100% of each color is mixed together, it creates white light. When 0% of each color is combined, no light is generated, creating black color. This provides 28, or 256 possible values for red, green, and blue. 256 x 256 x 256 = 16,777,216 total possible colors.

Picture depicting each block of the above image as one pixel. Ideally, there are millions of pixels in a single image.

1. Choose :

This button is provided in the editor section just top of the canvas, it is used for choosing an image by the user, so that it can be uploaded to the canvas.

2. Upload :

This function enables to let the input be first accepted by the user, then the ID of Canvas is chosen and then the image is drawn on it.

3. Download :

This is another button provided in the editor section, just close to the choose button, it is used to download the edited image from the canvas

4. Reset :

This button is present to the bottom of canvas and the function is used to reset the image to its original form. When the image is chosen, it’s two copies are created, so that when we have to revert back to the original image; the RGB value of the original image is set to the editor image which we want to reset.

5. Clear Canvas :

It is used for clearing the Canvas so that a new image can be uploaded for editing. Present image is cleared on clicking this button, available to the bottom of canvas, close to the reset button.

6. Grayscale :

Grayscale image, a kind of black-and-white or gray monochrome, are composed exclusively of shades of gray. The contrast ranges from black at the weakest intensity to white at the strongest. In this function each pixel of the image is traversed and its present r, g, b values are taken .Then the r, g, b value is set to the average of the previous r, g, b values which results in grayscale effect. Example : Avg=pixel(red)+ pixel(blue)+ pixel(green)/3 New Pixel(red)=avg , New Pixel(red)=avg, New Pixel(red)=avg

7. Warm :

This filter increases the red intensity of image. The present red value of the pixel is taken as input and is in incremented to achieve this effect.

8. Cool :

This filter increases the blue intensity of image. The present blue value of the pixel is taken as input and is in incremented to achieve this effect.

9. Emerald :

This filter increases the green intensity of image. The present green value of the pixel is taken as input and is in incremented to achieve this effect.

10. Contrast :

Contrast is determined by the difference in the colour and brightness of the object and other objects within the same field of view. It is the difference in luminance or colour that makes an object distinguishable. Here the RGB value of each pixel is taken as an input and it is incremented by a factor called as contrast factor which results in contrast effect. Example: Contrast factor = (259 * (contrast + 255)) / (255 * (259 - contrast))

11. Saturate :

Color saturation is the intensity and purity of a color as displayed in an image. The higher the saturation of a color, the more vivid and intense it is. The lower is color saturation, the closer it is to pure gray on the grayscale.

12. Invert :

This utility takes an image of any format and inverts the colors in it. Black becomes white, and white becomes black, and so for all the colors. Naturally, running the process twice on an image results back to the original image. Here the RGB value of each pixel is taken as input and it is set to its opposite i.e it is subtracted from 255 which results in invert effect.

13. Brightness :

It is used to change the brightness of an image. It takes the pixels of the input image and increases or decreases the Red, Green, Blue values significantly which results in increase or decrease in brightness.

SNAPSHOTS OF OUR WEBSITE :

1. Home Page:

GitHub Logo

2. About Project Section:

GitHub Logo


GitHub Logo

3. Editor Section :

GitHub Logo

4. About Us Page :

GitHub Logo

5. Contact Us Page :

GitHub Logo

Thank You:grinning: