Skip to content

Commit af0aa64

Browse files
committed
Cleaned up the folder
1 parent 8e0b2e1 commit af0aa64

File tree

193 files changed

+1209
-62573
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+1209
-62573
lines changed
6.62 MB
Binary file not shown.

Files for x64 Compiler/FreeImage.h

Lines changed: 1163 additions & 0 deletions
Large diffs are not rendered by default.
63.8 KB
Binary file not shown.

Image Alchemy Version 1.exe

153 KB
Binary file not shown.
1.95 MB
Binary file not shown.
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int selection_menu(){
101101
return position;
102102
}
103103

104-
// Function to apply a simple grayscale conversion to an image
104+
105105
void convertToGrayscale(FIBITMAP *image) {
106106
int width = FreeImage_GetWidth(image);
107107
int height = FreeImage_GetHeight(image);
@@ -111,10 +111,10 @@ void convertToGrayscale(FIBITMAP *image) {
111111
RGBQUAD pixel;
112112
FreeImage_GetPixelColor(image, x, y, &pixel);
113113

114-
// Convert the pixel to grayscale
114+
115115
BYTE grayscale = (BYTE)(0.3 * pixel.rgbRed + 0.59 * pixel.rgbGreen + 0.11 * pixel.rgbBlue);
116116

117-
// Set the pixel to the grayscale value
117+
118118
pixel.rgbRed = grayscale;
119119
pixel.rgbGreen = grayscale;
120120
pixel.rgbBlue = grayscale;
@@ -131,7 +131,7 @@ void blur(FIBITMAP *image, int radius) {
131131
// Create a temporary image to store the filtered result
132132
FIBITMAP *filteredImage = FreeImage_Clone(image);
133133

134-
// Apply the noise reduction filter to each pixel
134+
// Apply the blur filter to each pixel
135135
for (int y = 0; y < height; ++y) {
136136
for (int x = 0; x < width; ++x) {
137137
int count = 0;
@@ -178,7 +178,7 @@ void adjustBrightness(FIBITMAP* image, float factor) {
178178
RGBQUAD color;
179179
FreeImage_GetPixelColor(image, x, y, &color);
180180

181-
// Adjust brightness for each channel (RGB)
181+
182182
color.rgbRed = (BYTE)MIN(255, MAX(0, (int)(color.rgbRed * factor)));
183183
color.rgbGreen = (BYTE)MIN(255, MAX(0, (int)(color.rgbGreen * factor)));
184184
color.rgbBlue = (BYTE)MIN(255, MAX(0, (int)(color.rgbBlue * factor)));
@@ -220,7 +220,6 @@ void applySepiaFilter(FIBITMAP* image) {
220220
RGBQUAD pixel;
221221
FreeImage_GetPixelColor(image, x, y, &pixel);
222222

223-
// Calculate sepia values
224223
int tr = (int)(0.393 * pixel.rgbRed + 0.769 * pixel.rgbGreen + 0.189 * pixel.rgbBlue);
225224
int tg = (int)(0.349 * pixel.rgbRed + 0.686 * pixel.rgbGreen + 0.168 * pixel.rgbBlue);
226225
int tb = (int)(0.272 * pixel.rgbRed + 0.534 * pixel.rgbGreen + 0.131 * pixel.rgbBlue);

License.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
ImageAlchemy Photo Editor License Agreement
2+
3+
Copyright (c) [2023] Shawaiz Haider, Sannan Shahid, and contributors.
4+
5+
All rights reserved.
6+
7+
This photo editor, "ImageAlchemy," is the result of an end semester complex engineering project at the National University of Sciences and Technology by developers Shawaiz Haider and Sannan Shahid. The software is protected by copyright law and international treaties.
8+
9+
LICENSE GRANT:
10+
Subject to the terms and conditions of this License Agreement, the developers grant you a non-exclusive, non-transferable, limited license to use the ImageAlchemy Photo Editor.
11+
12+
RESTRICTIONS:
13+
You may not sublicense, rent, lease, or sell the software. Any attempt to transfer any of the rights, duties, or obligations hereunder is void.
14+
15+
DISCLAIMER:
16+
The ImageAlchemy Photo Editor is provided "as is" without warranty of any kind, expressed or implied, including, but not limited to, the warranties of merchantability, fitness for a particular purpose, and non-infringement. The developers do not warrant that the functions contained in the software will meet your requirements or that the operation of the software will be uninterrupted or error-free.
17+
18+
LIMITATION OF LIABILITY:
19+
In no event shall the developers be liable for any consequential, incidental, indirect, special, or punitive damages whatsoever arising out of the use of or inability to use the ImageAlchemy Photo Editor, even if the developers have been advised of the possibility of such damages.
20+
21+
TERMINATION:
22+
This License Agreement is effective until terminated. Your rights under this License Agreement will terminate automatically without notice from the developers if you fail to comply with any term(s) of this License Agreement.
23+
24+
Thank you for using ImageAlchemy Photo Editor.
25+
26+
Contact Information: [shaider.bee23seecs@seecs.edu.pk]
27+
[sshahid.bee23seecs@seecs.edu.pk]

Makefile

Lines changed: 0 additions & 2 deletions
This file was deleted.

Photo_Editor.exe

-56.6 KB
Binary file not shown.

README.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-Welcome to Image Alchemy
2+
-->Compilation Instructions
3+
1) To recompile this program you need to right click on the "Run_This_To_Compile.ps1" file and then click run in terminal.
4+
An Exe file will be generated
5+
6+
--> Common Errors and Fixes
7+
- If exe file is not being generated by "Run_This_To_Compile.ps1" then it is a possibility that your compiler will be x64 based.
8+
--> In that case you need to open the files for x64 compiler and modify this line for yourself and run it in terminal:
9+
10+
gcc -o ImageAlchemy.exe Image_Alchemy_Source_Code.c -I "/path/to/header/files" -L "/path/to/library/files" -lFreeImage -static-libgcc -static-libstdc++
11+
If in case it does not compile then you can contact us at:
12+
- shaider.bee23seecs@seecs.edu.pk
13+

0 commit comments

Comments
 (0)