- Base setup
- Make
color_offsetoptional, you can set it toTruewhen callingglitch_image()or, if you're using the script, include the param-c.
-
Fix not being able to use image names with dots in them
Thanks to @ojensen5115
-
Add detailed exceptions
Thanks to @amancevice
-
Change
==toisThanks to @amancevice and @KopfKrieg
- Added entrypoint to
setup.py, now you don't have to install the commandline script seperately! - Simply use
glitch_this argsfrom the commandline afterpip3 install glitch-this! - Add Glitching an image to GIF support in the library! Now you can specify the necessary arguments to get a list of frames that you can use to make a GIF as well as normal images!
-
Implement version checker in commandline script
The commandline tool will now inform you if the package is out of date!
- Fix a script breaking bug
- Fix missing frames argument
-
Add support for
Imageobject input, now you can directly pass anImageobject to the library! -
Add support for glitching GIFs to GIFs, That's right! You can now input a GIF to turn it into a GLITCHED GIF!
-
Cleanup code
-
Add more docs
-
The library will now cleanup after itself when making glitched GIFs
-
NEW Parameters for
commandline.py:- -
-l, --loop: Specify how many times the GIF should loopDefaults to 0, i.e infinite loop
-
-f, --force: The script will no longer automatically overwrite existing files, you need to include-ffor it do soDefaults to False
-
-o, --outfile: Specify a full/relative path to write the output file tocheck out the docs for information on how to use these!
-
Add more sanity checks in
commandline.py -
Reduce compression level from 6 to 3 in
commandline.py(improves performance significantly) -
-f,--frameshas been renamed to-fr, --frames
- Reduce compression level from 6 to 3
glitch_this.py(improves performance)
-
Organize argparser help text
-
NEW parameters for
glitch_imageandglitch_gifinglitch_this.py:--
glitch_change: Increment/Decrementglitch_amountby given amount after every glitching -
cycle: Whether or not to cycleglitch_amountback to 1 or 10, if it overflows or underflows -
step: Glitch every step'th frame, instead of all of them
-
-
NEW parameters for
commandline.py:--
-i, --increment: Increment/Decrementglitch_amountby given amount after every glitching -
-cy, --cycle: Whether or not to cycleglitch_amountback to 1 or 10, if it overflows or underflows -
step: Glitch every step'th frame, instead of all of them -
relative_duration: Use a duration relative to the source GIFs duration
-
- Add punctuation to help text
- Fix version name
-
Add support for float type numbers for glitch_amount
You can now supply floats as glitch_amount! This works best when using floats with maximum of 1-2 decimal places
Read the docs for more info!
-
Redesign help text for the commandline script
-
Add a more detailed description for the commandline script
-
Add more sanity checks in
glitch_this.py -
Improve Exception handling and Exception messages
- Fix help text formatting in
commandline.py
-
Add support for floats as Increment/Decrement (
glitch_change)You can now use a value between +-0.0 and +-10.0 (inclusive)
-
Glitching intensity can now be in range 0.1 to 10.0 (inclusive)
-
Improve version checking efficiency
The version is only checked once every few days and saved into a local file. This file is checked afterwards. Eliminates the need to send request to pypi
-
Add
--versionargument to the commandline script
- NEW
glitch_imageandglitch_gifinglitch_this.py:-seed: Set a custom seed to be used byrandom, for generating similar images across runs
- NEW parameters for
commandline.py:--sd, --seed: Set a custom seed to be used byrandom, for generating similar images across runs
- Cleanup the codebase using fstrings
- Add FULL typing support for providing a better experience to library users
- Fix undefined variable in
glitch_gif
- Add better error message when
frame['duration']inglitch_gif(fromglitch_this.py) raises a key error Suggested by #32
-
Add typing overloads for
glitch_imageto choose return type based ongif: boolparameter.Whether the function returns
ImageorList[Image]can be deduced by the type checker based on the value of thegifparameter (when it is a boolean constant literal)See: #44
Thanks to @Matthieu-LAURENT39