Project CSE
Project CSE
by
Affiliated to
MAHARISHI DAYANAND UNIVERSITY, ROHTAK
Declaration
I hereby certify that the work which is being presented in project entitled “Automating File
Renaming and Image Compression using Python” in partial fulfillment of requirement for
the award of B.Tech (Computer Science Engineering) degree, at Global Institute of
Technology and Management, Farrukhnagar, Gurgaon under MDU University Rohtak is the
original work presented in this report and is submitted in department of Computer Science
Engineering. The work submitted is original to my best knowledge and has not been
submitted for any other purpose.
NAME OF STUDENT:
College Roll No:
Certificate
We hereby certify that the work which is being presented in project entitled “Automating
File Renaming and File Compression using Python” by “Ayush Khatri (201095),
Mukesh Gupta (201151) and Battulla Hruday Ventaka Sai (211503)” has been
successfully completed in partial fulfillment of requirement for the award of B.Tech
(Computer Science Engineering) degree, and is submitted in department of Computer Science
Engineering at Global Institute of Technology and Management, Farrukhnagar, Gurgaon
under MDU University Rohtak. His/Her work progress has been supervised by “GUIDE
NAME” at the college itself.
I express my sincere thanks to my Project Guide Ms. Preeti for guiding me right from
the inception till the successful completion of the project. I sincerely acknowledge him/her
for extending their valuable guidance, support for literature, critical reviews of project and
the report and above all the oral support he/she had provided to me in all the stages of this
project.
Name
(Roll Number)
Table of Contents
Chapter
Contents Page no
no.
1 Abstract
2 Introduction
3 Problem formulation/Objectives
Analysis Phase
1. Cost Benefit Analysis
4
2. Software evaluation factors
3. Overview of technology used
6 Working
7 Coding Phase
8 Screenshot/ Output
12 Bibliography/References
Abstract
Introduction
Renaming multiple files at once and compressing images are
common tasks for many computer users, but they can be time-
consuming and tedious when done manually. Fortunately,
Python provides a powerful and flexible platform for automating
these tasks..
With the rapid growth of display device diversity and versatility
today, new demands are presented to digital media. Image
resizing, as one of the most useful and widely-used techniques
in relevant areas, has been accordingly greatly improved.
Image resizing is necessary when you need to increase or
decrease the total number of pixels, whereas remapping can
occur when you are correcting for lens distortion or rotating an
image. Zooming refers to increase the quantity of pixels, so that
when you zoom an image, you will see more detail.
In this paper, we present a Python script that automates file
renaming and image compression, providing users with an
efficient and user-friendly tool for these tasks
Problem formulation/Objectives
The objective of this project is to rename lot of files and
resize images. Resizing allows you to make your image
smaller or larger without cutting anything out. Resizing
alters the image's dimensions, which typically affects the file
size and image quality. The most common reason for
resizing photos is to reduce the size of large files to make
them easier to email or share online..
Analysis Phase
COST BENEFIT
ANALYSIS
As we know, creating
software is one thing
and the implementation
of the
created software is
another. The process of
implementing software is
much
difficult as compared to
the task of creating the
project. First we have to
implement the software
on a small scale for
removing the bugs and
other
errors in the project and
after removing them we
can implement the
software
on a large scale. Before
we think in terms of
implementing the
Software on a
large basis, we must
consider the Hardware
requirements. Whenever
we
develop software or
project a certain hardware
and software is being used
by
the programmer for
developing the project.
The hardware and
software to be
used by the programmer
for developing the
project should be such
that it
would result in the
development of a project,
which would satisfy all
the basic
needs for which the
project has been created
by the programmer. The
Hardware should be
such that cost
constraints of the Client
should also be
taken into account without
affecting the performance.
1) COST BENEFIT ANALYSIS
As we know, creating software is one thing and the
implementation of the created software is another. The
process of implementing software is much difficult as
compared to the task of creating the project. First we
have to implement the software on a small scale for
removing the bugs and other errors in the project and
after removing them we can implement the software on a
large scale. Before we think in terms of implementing the
Software on a large basis, we must consider the
Hardware requirements.
Whenever we develop software or project a certain
hardware and software is being used by the programmer for
developing the project. The hardware and software to be
used by the programmer for developing the project
should be such that it would result in the development of
a project, which would satisfy all the basic needs for
which the project has been created by the programmer.
The Hardware should be such that cost constraints of
the Client should also be taken into account without
affecting the performance.
Supported Languages:
To start developing in Python with PyCharm you need to
download and
install Python from python.org depending on your platform.
PyCharm supports the following versions of Python:
Python 2: version 2.7
Python 3: from the version 3.6 up to the version 3.10
Besides, in the Professional edition, one can develop Django,
Flask, and Pyramid applications. Also, it fully supports
HTML (including HTML5), CSS, JavaScript, and XML: these
languages are bundled in the IDE via plugins and are switched
on for you by default. Support for the other languages and
frameworks can also be added via plugins (go to Settings |
Plugins or PyCharm | Preferences | Plugins for macOS
users, to find out more or set them up during the first IDE
launch).
To start developing in
Python with PyCharm you
need to download and
install Python from
python.org depending on
your platform.
PyCharm supports the
following versions of
Python:
Python 2: version 2.7
Python 3: from the version
3.6 up to the version 3.10
Besides, in the
Professional edition, one
can develop Django,
Flask, and Pyramid
applications.
Also, it
fully supports HTML
(including HTML5), CSS,
JavaScript, and XML:
these languages
are bundled in the IDE via
plugins and are switched
on for you by default.
Support for the
other languages and
frameworks can also be
added via plugins (go to
Settings | Plugins or
PyCharm | Preferences |
Plugins for macOS users,
to find out more or set
them up during
the first IDE launc
3)Software Evaluation Factors
Programming Language:
Python
Software :
Python (3.10.2)
PyCharm
Operating System:
Windows 10
MAIN LIBRARIES
1) Tkinter
Enter the main event loop to take action against each event
triggered by the user.
2) OS
3) CV2
OpenCV is a huge open-source library for computer
vision, machine learning, and image processing. OpenCV
supports a wide variety of programming languages like
Python, C++, Java, etc. It can process images and videos to
identify objects, faces, or even the handwriting of a human.
Interpolation Method for Resizing –
cv2.INTER_AREA: This is used when we need to shrink
an image.
cv2.INTER_CUBIC: This is slow but more efficient.
cv2.INTER_LINEAR: This is primarily used when
zooming is required. This is
the default interpolation technique in OpenCV.
Working
1. START:
2. Click on “RENAME FILES”.
3. After click on Rename files Button, then Browse or Enter the
path of folder
contaning the Files, Enter New File Name & Enter New File
Extension.
4. Click on “Change”.
5. After Click on Change Button, the Files name changes
successfully.
1. START:
2. Click On “CHANGE IMAGES SIZE”:
3. After click on ‘Change Image Size’ button, then Browse or Enter
the path of
folder contaning the Images,Enter new the Width & Height of
image you want:
4. Click on “Change”.
5. After click on ‘Change’, the Images Size change successfully
Coding Phase
Screenshot/ Output
Methodology/ Approach of work