dpid

command module
v0.0.0-...-0605741 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

README

Description

"Rapid, Detail-Preserving Image Downscaling" Implementations in Python and Goland

Examples

python:

Python dpid.py "myImage.jpg" 

Golang:

dpid "myImage.jpg"              // downscales using default values
dpid "myImage.jpg" 256          // downscales to 256px width, keeping aspect ratio
dpid "myImage.jpg" 0 256        // downscales to 256px height, keeping aspect ratio
dpid "myImage.jpg" 128 0 0.5    // downscales to 128px width, keeping aspect ratio, using lamdba=0.5
dpid "myImage.jpg" 128 128      // downscales to 128x128px, ignoring aspect ratio
org 200x300 dpid lamdba=0.5 dpid lamdba=0.8
raw200 dpid 0.5 dpid 0.8

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL