Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fedulovivan/easyresizer
Automatically exported from code.google.com/p/easyresizer
https://github.com/fedulovivan/easyresizer
Last synced: about 1 month ago
JSON representation
Automatically exported from code.google.com/p/easyresizer
- Host: GitHub
- URL: https://github.com/fedulovivan/easyresizer
- Owner: fedulovivan
- Created: 2015-03-13T08:14:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-13T21:02:06.000Z (almost 10 years ago)
- Last Synced: 2023-02-28T17:56:10.500Z (almost 2 years ago)
- Language: PHP
- Size: 1.44 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Usage:
--------------
put original image "some_image.jpeg" to "/img" folderget constraned in x-axis by 100px image
/img/100_0/some_image.jpegconstraned in both axises and crop area defined to s(start)
/img/150_100_s/some_image.jpegParams:
----------------
150_100_s
^ ^ ^
| | |crop-area
| |
| |y-axis constraint
|
|x-axis constraint[x-axis constraint] - integer value, defined in pixels, which sets
max x size of image
is you don`t need to restrict x sise of img, set this param to "0"(zero)[y-axis constraint] - integer value, defined in pixels, which sets
maximum image size in y dimension.
if you don`t need to restrict y size of img, set this param to "0"(zero)[crop-area] - when we cropping original image, there is three variants
of areas, from where disired img will be taken:
[start=s] - left part of orig. image if it has landscape orientation
and top part if portrait
[end=e] - it`s right part if image in case of landscape orientation
and bottom otherwise
[middle=m] - is middle in both situations
this param is optional, and by default takes "m" valuePlease, note, that both "x" and "y" constraints must be specified.
But one of them can have "0"(zero) valueIf you don`t use both "x" and "y", crop-area argument don`t needed too,
because image is always fully fits.