Skip to content

JJRR5/Thumbnail-Creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Thumbnail-creator

⚠️ The command will reduce the quality of the image but this won't be a problem due to the thumbnails are small and don't require to much quality

The command will make a search throught the current directory to find all the images or the image in the following formats:

  • jpg
  • png
  • jpeg

The images will be transformed into thumbnails with the exact size and background-color for odoo's snippets. The original image isn't modified the command creates a copy and a folder called thumbnails where are going to be stored.


e.g.

image

Snippet

image

Thumbnail


Requirements πŸ”ƒ

-pip install Pillow
-pip install argparse

Usage πŸ‘·β€β™‚οΈ

it's recommended to create an alias to the path where you are going to save the thumbnail_creator.py file.

e.g.

Location alias
~/Personal/thumbnail_creator.py alias thumbnail="python3 ~/Personal/thumbnail_creator.py"

  • your_alias --thumb-all
    • The command creates a thumbnail for every image in the current path
    • Parameters:
      • None

  • your_alias --thumb < name_of_your_image> < .jpg >
    • The command creates a thumbnail for the specified image
    • Parameters:
      • name_of_your_image: the name of the file(str)
      • extension: the extension of the image (.jpg, .jpeg, .png) (str) including the dot at the beginning

About

The purpose of this repository is to create a script that modifies the images and adapt them into thumbnails for the snippets in odoo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages