Skip to main content

A small example package

Project description

Proc_Image

Small and simple image processing library

#How to Install The Library?

pip install ProcImage

First, this is a simple and compact package for image processing and hardware management developed using the Pillow package


  • First: This package contains two volumes, the first folder is called Image_ This folder contains a file called image_processing.py and this file is for image processing

  • Secondly: The second folder is called organize and this folder contains a file called organize_hard.py for organizing the that arranges the pictures, folders, applications, etc... It arranges and organizes them well and neatly.

1- Now: We start giving examples of the folder Image_ We agree that this folder contains a Python file named processing_image.py and this file contains several functions. We will now give examples of these functions in this file.

Let's take an example : about the function get_list(path) it takes the path of a folder and then returns all the images as a table

from image_processing import ImageProcessing

my_object = ImageProcessing()
print(my_object.get_list(r"C:\Users\Alaa\Pictures"))

Output

Name Image
33.jpg
A.jpg
aesthetic-ocean-cell-phone-art-94x4pcvrtazi8upm.jpg
palm-tree-1.jpg
rr.jpg
test.jpg
test1.jpg
veidz.jpg
['33.jpg', 'A.jpg', 'aesthetic-ocean-cell-phone-art-94x4pcvrtazi8upm.jpg', 'palm-tree-1.jpg', 'rr.jpg', 'test.jpg', 'test1.jpg', 'veidz.jpg']

Example Two

The first function get_list_sorted(main_path , answer) takes the full path of the target image folder,

###and takes the user's answer, in order to arrange the images in ascending or descending order. In the entered folder

from image_processing import ImageProcessing
my_object = ImageProcessing()

print(my_object.get_list_sorted(r"C:\Users\Alaa\Pictures",False))

Output

['33.jpg', 'A.jpg', 'aesthetic-ocean-cell-phone-art-94x4pcvrtazi8upm.jpg', 'palm-tree-1.jpg', 'rr.jpg', 'test.jpg', 'test1.jpg', 'veidz.jpg']

The second function best_image(path_image ) takes the full path of the target image folder and then returns the best image in terms

of resolution and it takes only one parameter, which is the full path of the folder containing the images

from image_processing import ImageProcessing

my_object = ImageProcessing()
print(my_object.best_image(r"C:\Users\Alaa\Pictures"))

#Output

['A.jpg', 6400, 'C:\Users\Alaa\Pictures']
name Image :A.jpg
total dimensions :6400 Pixel
Location :C:\Users\Alaa\Pictures

Developer "Developer"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ProcImage-0.0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file ProcImage-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ProcImage-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for ProcImage-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58835b6c946c7c9b747e999cf3b5633e3eb8f5ef409c686a98fb41ca587bee52
MD5 f7c5b465f956fe67b1c5d3757ec4db6a
BLAKE2b-256 e428daa06ce6ff9b07d4c0b6fa2614542f1f9832ddca24eb2f1bc839f4b2772c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page