Skip to content

Commit 894386d

Browse files
authored
Merge pull request #178 from CrypticRevenger/main3
Created Readme.md #132 #175
2 parents c69f9f7 + 8ae856c commit 894386d

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-0
lines changed

Merge of images.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
##install pillow before using this.
2+
from PIL import Image
3+
4+
# Open the two images you want to merge
5+
image1 = Image.open("image1.jpg")
6+
image2 = Image.open("image2.jpg")
7+
8+
# Ensure both images have the same size
9+
if image1.size != image2.size:
10+
raise ValueError("Images must have the same dimensions")
11+
12+
# Merge the two images
13+
merged_image = Image.blend(image1, image2, alpha=0.5) # You can adjust the alpha value to control the blending
14+
15+
# Save the merged image
16+
merged_image.save("merged_image.jpg")
17+
18+
# Display the merged image (optional)
19+
merged_image.show()

import of music and video/Readme.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
**ABOUT**
2+
# Music Player
3+
4+
A simple Python script that provides a graphical user interface (GUI) for playing music files. This script uses `tkinter` for the GUI and `pygame` for audio playback.
5+
6+
## Prerequisites
7+
8+
Before you begin, ensure you have met the following requirements:
9+
10+
- Python3 installed.
11+
- The `pygame` library installed. You can install it using pip:
12+
13+
```bash
14+
pip install pygame
15+
16+
17+
## Usage
18+
Clone or download this repository to your local machine.
19+
Open your terminal or command prompt and navigate to the project directory.
20+
21+
Run the script using Python:
22+
bash
23+
python music_player.py
24+
Click the "Open Music File" button to select an MP3 or WAV music file from your computer.
25+
26+
The selected music file will be played using the pygame mixer.
27+
28+
29+
**Troubleshooting**
30+
If you encounter any issues while using the music player, please consider the following troubleshooting steps:
31+
32+
1. Ensure you have Python 3 installed.
33+
2. Verify that pygame is installed by running pip show pygame.
34+
3. Check your system's audio settings for playback.
35+
36+
------------------------------------------------------------------------------------------------------------------------------------------
37+
38+
**README.md for Video Player Script:**
39+
40+
# Video Player
41+
42+
A Python script that provides a graphical user interface (GUI) for playing video files (MP4 or AVI). This script uses `tkinter` for the GUI and relies on the [OpenCV](https://opencv.org/) library for video playback.
43+
44+
## Prerequisites
45+
46+
Before you begin, ensure you have met the following requirements:
47+
48+
- Python 3 installed.
49+
- The [OpenCV](https://opencv.org/) library installed. You can install it using pip:
50+
51+
```bash
52+
pip install opencv-python
53+
54+
**Usage**
55+
Clone or download this repository to your local machine.
56+
Open your terminal or command prompt and navigate to the project directory.
57+
58+
Run the script using Python:
59+
bash
60+
python video_player.py
61+
Click the "Open Video File" button to select an MP4 or AVI video file from your computer.
62+
63+
The selected video file will be played using the OpenCV-based video player.
64+
65+
66+
**Troubleshooting**
67+
If you encounter any issues while using the video player, please consider the following troubleshooting steps:
68+
69+
1. Ensure you have Python 3 installed.
70+
2. Verify that opencv-python is installed by running pip show opencv-python.
71+
3. Check your system's video codec support and audio settings.
72+

0 commit comments

Comments
 (0)