###### NAVIGATE - BACK : [[IMAGES]]
----
>[!info]- [[ENIGMAS]]
----
#### AENIGMAS
Photo
>[!quote]- NARU
><iframe allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Freel%2F942814794496929" class="iframe-container iframe-facebook" loading="lazy"></iframe>
>
>https://www.facebook.com/reel/942814794496929
------
Images
>[!quote]- NARU
><iframe allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" src="https://www.instagram.com/reel/DEimjx4yMzk/embed" class="iframe-container iframe-instagram-reel"></iframe>
>
>https://www.instagram.com/reel/DEimjx4yMzk
------
Images
>[!quote]- NARU
><iframe allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" src="https://www.linkedin.com/posts/abhi1thakur_tgi-v3-is-here-the-latest-release-activity-7272235763344265217-jciM" class="iframe-container iframe-linkedin-post"></iframe>
>
>https://www.linkedin.com/posts/abhi1thakur_tgi-v3-is-here-the-latest-release-activity-7272235763344265217-jciM
------
Photo
SUD : CAR
>[!quote]- NARU
><iframe allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" src="https://www.facebook.com/plugins/video.php?href=https://www.facebook.com/reel/1291945265287135" class="iframe-container iframe-facebook"></iframe>
>
>https://www.facebook.com/reel/1291945265287135
------
Photos
>[!quote]- NARU
><iframe allowfullscreen src="https://www.instagram.com/reel/C9ISlNXIEXt/embed/" width="100%" height="555" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"></iframe>
>
>https://www.instagram.com/reel/C9ISlNXIEXt/
--------
HIDE OTHER IMAGES INSIDE oF ANOTHER
>[!quote]- NARU
><iframe allowfullscreen src="https://www.instagram.com/reel/C6KslJaOEXc/embed" width="100%" height="555" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"></iframe>
>
>https://www.instagram.com/reel/C6KslJaOEXc/
-----
Images
>[!quote]- NARU
><iframe allowfullscreen src="https://www.youtube.com/embed/rk6_dkHFdoQ" width="100%" height="555" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"></iframe>
>
>https://www.youtube.com/watch?v=rk6_dkHFdoQ
-----
Images
Polorizer
>[!quote]- NARU.b
><iframe allowfullscreen src="https://www.youtube.com/embed/nUGZzcEuaZE" width="100%" height="555" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"></iframe>
>
>https://www.youtube.com/watch?v=nUGZzcEuaZE
---
IDEAL IMAGE FORMAT FOR WEB [TO MY KNOWLEDGE NOW]
- .webp
---
Outline drawing
>[!quote]- NARU
><iframe allowfullscreen src="https://youtube.com/embed/CiZUOUSXzls" width="100%" height="555" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" ></iframe>
>
>https://youtu.be/CiZUOUSXzls
-----
Illustration
>[!quote]- NARU
><iframe allowfullscreen src="https://www.youtube.com/embed/dDBX37uu2jM" width="100%" height="555" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" ></iframe>
>
>https://youtu.be/dDBX37uu2jM
-----
DRAWING
Lol this is top of the game
>[!quote]- NARU
><iframe allowfullscreen src="https://www.youtube.com/embed/RBGY7SOQZuk" width="100%". height="500"frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" ></iframe>
>
>https://youtu.be/RBGY7SOQZuk
----
Drawing
We don't want to get jnto business
>[!quote]- NARU
><iframe allowfullscreen src="https://www.youtube.com/embed/i3l0crOwtMw" width="100%" height="500" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" ></iframe>
>https://youtu.be/i3l0crOwtMw
------
OPTIMIZING IMAGES PROCESS
UTILIZING TERMINAL
DEPENDENCIES NEEDED : [MAC OS]
```
brew install imagemagick jpegoptim pngquant optipng svgo mat2
```
PYTHON SCRIPT TO OPTIMIZE ALL IMAGES IN FOLDERS
- REDUCES SIZE
- REMOVES METADATA [LESS SIZE U kNOW]
```
import os
import subprocess
import shutil
def remove_metadata(file_path):
subprocess.run(['mat2', '-s', file_path])
def optimize_jpeg(file_path):
new_path = f"{file_path.rsplit('.', 1)[0]}_new.jpg"
subprocess.run(['convert', file_path, '-resize', '1920x1080', '-strip', '-quality', '85', new_path])
subprocess.run(['jpegoptim', '--max=85', '--strip-all', new_path])
return new_path
def optimize_png(file_path):
new_path = f"{file_path.rsplit('.', 1)[0]}_new.png"
subprocess.run(['convert', file_path, '-resize', '1920x1080', '-strip', new_path])
subprocess.run(['pngquant', '--quality=65-80', '--strip', '--skip-if-larger', new_path, '-o', new_path])
subprocess.run(['optipng', '-o7', new_path])
return new_path
def optimize_svg(file_path):
new_path = f"{file_path.rsplit('.', 1)[0]}_new.svg"
subprocess.run(['svgo', '-o', new_path, file_path])
return new_path
def compare_and_replace(original_path, new_path):
original_size = os.path.getsize(original_path)
new_size = os.path.getsize(new_path)
if new_size < original_size:
os.remove(original_path)
shutil.move(new_path, original_path)
else:
os.remove(new_path)
remove_metadata(original_path)
def optimize_images_in_folder(folder_path):
for root, dirs, files in os.walk(folder_path):
for file in files:
file_path = os.path.join(root, file)
if file.lower().endswith(('.jpg', '.jpeg')):
print(f"Optimizing JPEG: {file_path}")
new_path = optimize_jpeg(file_path)
compare_and_replace(file_path, new_path)
elif file.lower().endswith('.png'):
print(f"Optimizing PNG: {file_path}")
new_path = optimize_png(file_path)
compare_and_replace(file_path, new_path)
elif file.lower().endswith('.svg'):
print(f"Optimizing SVG: {file_path}")
new_path = optimize_svg(file_path)
compare_and_replace(file_path, new_path)
if __name__ == "__main__":
folder_path = input("Enter the path to the folder containing the images: ")
optimize_images_in_folder(folder_path)
print("Image optimization complete.")
```
----