Giter Club home page Giter Club logo

session11_epfi-'s Introduction

allmodule

def allmodule_func(*args,**kwargs):

This function takes the parameters and based on the given parameter calls the respective Function
j2p Calls the JPG to PNG Module
p2j Calls the PNG to JPG Module
res_p Calls the bulk resize given the percentage 
res_w Calls the bulk resize given the width
res_h Calls the bulk resize given the height
crp_p Calls the bulk crop given the percentage
crp_px Calls the bulk resize given the pixel

if name == 'main':

This is the Section which runs while this module is called independently
This demonstrates how the user can pass the arguments from the commandline of the python and the module 
behaves based on the given argument
argument o  to take the option argument from the user
argument d  to take the directory path from the user
argument f  to take the file name from the user
argument p  to take the resize or crop percentage from the user
argument w  to take the width value from the user
argument ht to take the height value from the user
argument l  to take the pixel from the user

bulkresize

def resize(path,**kwargs):

This function takes the parameters and based on the given parameter calls the respective Function
bulk resize given the percentage 
bulk resize given the width
bulk resize given the height

if name == 'main':

This is the Section which runs while this module is called independently
This demonstrates how the user can pass the arguments from the commandline of the python and the module 
behaves based on the given argument
argument d  to take the directory path from the user
argument p  to take the resize or crop percentage from the user
argument w  to take the width value from the user
argument ht to take the height value from the user

bulkcrop

def bulkcrop(path,**kwargs):

This function takes the parameters and based on the given parameter calls the respective Function
crp_p Calls the bulk crop given the percentage
crp_px Calls the bulk resize given the pixel

if name == 'main':

This is the Section which runs while this module is called independently
This demonstrates how the user can pass the arguments from the commandline of the python and the module 
behaves based on the given argument
argument d  to take the directory path from the user
argument p  to take the resize or crop percentage from the user
argument l  to take the pixel from the user

jpg2png

def jpg2png_func(dir,img):

Takes input as a JPG image and converts into PNG

if name == 'main':

This is the Section which runs while this module is called independently
This demonstrates how the user can pass the arguments from the commandline of the python and the module 
behaves based on the given argument
argument d  to take the directory path from the user
argument f  to take the file name from the user

png2jpg

def png2jpg_func(dir,img):

Takes input as a PNG image and converts into JPG

if name == 'main':

This is the Section which runs while this module is called independently
This demonstrates how the user can pass the arguments from the commandline of the python and the module 
behaves based on the given argument
argument d  to take the directory path from the user
argument f  to take the file name from the user

session11_epfi-'s People

Contributors

nkanungo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.