Skip to content

Commit aecd86c

Browse files
committed
🎨 Add instructions for Python3 and improve README
1 parent d111c21 commit aecd86c

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ source env/bin/activate
3232
- Install requirements
3333

3434
```sh
35-
pip install -r requirements.txt
35+
pip3 install -r requirements.txt
3636
```
3737

3838
- Run and explore the scripts!
3939

40+
__NOTE: All the scripts are written in Python 3. So, make sure to use the appropriate version of pip and python.__
41+
4042
## Contents 📄
4143

4244
- [Code Destroyer](#Code-Destroyer)
@@ -115,7 +117,7 @@ a single PDF. The program also prompts user if they want to include the cover pa
115117
It is recommended to rename files so that they are lexographically in the same order as they are to be combined and put them in the same directory as the script.
116118
The combined PDF would be saved as the name of the first file in the lexographic order prepended with 'combined'.
117119

118-
_Useful if you have many PDF and you want to read them all one after the another (like PDFs of a professor's slides that you wish to read before exams). You won't need to go from one PDF to another._
120+
_Useful if you have many PDF and you want to read them all one after the another (like all the PDFs of a professor's slides that you wish to read before exams). You won't need to go from one PDF to another after using this and would also have the option of adding or removing the coverpage of each PDF._
119121

120122
__Ensure that none of the PDFs are encrypted.__
121123

@@ -161,9 +163,10 @@ Choose whether you want to encrypt or decrypt a PDF and then enter the name of t
161163

162164
### Add Logo to Images
163165

164-
Adds logo to the lower-right corner of all the pngs, jpgs and jpegs in the directory.
166+
Adds logo to the lower-right corner of all the pngs, jpgs and jpegs in the directory. The size of logo is approximately 1/10 th of the size of the image and has a padding of 1/25 th to the right and bottom of the logo is added.
167+
168+
_Useful to add logos to images to prove their originality, make them harder to copy, and add authorship._
165169

166-
_Useful to add logos to imagesto prove their originality, make them harder to copy, and add authorship._
167170
#### Usage:
168171

169172
```py3

addLogo/addLogo.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""
2-
addLogo.py - Adds logo to the lower-right corner of all the png, jpg, jpeg
3-
files in the directory.
2+
addLogo.py - Adds logo to the lower-right corner of all the pngs, jpgs and
3+
jpegs in the directory. The size of logo is approximately 1/10 th of the size
4+
of the image and has a padding of 1/25 th to the right and bottom of the logo
5+
is added.
46
57
Usage: run "python3 addLogo.py" and enter the name of the logo to be inserted.
68
All the images with added logo would be saved in 'withLogo' directory.
@@ -37,8 +39,8 @@
3739
im = Image.open(fileName)
3840
width, height = im.size
3941

40-
# Resizes the largest dimention of logo to 1/5 of smallest dimension
41-
# of the image file
42+
# Resizes the largest dimention of logo to 1/10th of smallest dimension
43+
# of the image file and padding to 1/25th.
4244
if height < width:
4345
if logoWidth > logoHeight:
4446
logoHeight = int((logoHeight / logoWidth) * int(height/10))

0 commit comments

Comments
 (0)