diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 20:58:11 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 20:58:11 +0000 |
commit | b7521f1ddc0510839a84f1e48e81173cc629d052 (patch) | |
tree | 632dbaa6e1eec1421a30eefabfeeecf5e29ebd68 | |
parent | 6cf59c7444de41ddd8227384dc7b929f0ea8c6ec (diff) |
automatic import of python-glitch-this
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-glitch-this.spec | 551 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 553 insertions, 0 deletions
@@ -0,0 +1 @@ +/glitch_this-1.0.2.tar.gz diff --git a/python-glitch-this.spec b/python-glitch-this.spec new file mode 100644 index 0000000..c9fd9ab --- /dev/null +++ b/python-glitch-this.spec @@ -0,0 +1,551 @@ +%global _empty_manifest_terminate_build 0 +Name: python-glitch-this +Version: 1.0.2 +Release: 1 +Summary: A package to glitch images and GIFs, with highly customizable options! +License: MIT License +URL: https://github.com/TotallyNotChase/Glitch-and-Gif +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4a/51/e89f51f01420ea612f2a460aa4b9cd8d3b8316aacaeb811010c9e5de7f60/glitch_this-1.0.2.tar.gz +BuildArch: noarch + +Requires: python3-Pillow +Requires: python3-numpy + +%description +<h1 align="center">glitch-this!</h1> +<p align="center"><i>Create glitched images and GIFs, with highly customizable options!</i></p> +<hr><p align="center"> + <a href="https://pypi.org/project/glitch-this"><img alt="Pypi release" src="https://img.shields.io/pypi/v/glitch-this?color=red&label=pypi%20release&logo=pypi&logoColor=blue" /></a> + <img alt="Stars" src="https://img.shields.io/github/stars/TotallyNotChase/glitch-this.svg?label=Stars&style=flat" /> + <a href="https://pepy.tech/project/glitch-this"><img alt="Pypi downloads" src="https://pepy.tech/badge/glitch-this" /></a> + <a href="http://www.python.org/download/"><img alt="Python 3" src="https://img.shields.io/badge/Python-3-yellow.svg"></a> + <a href="https://github.com/TotallyNotChase/glitch-this/blob/master/LICENSE"><img src="https://img.shields.io/github/license/TotallyNotChase/glitch-this.svg" alt="License"/></a> +</p> + +A commandline tool + `python` library to glitchify images and **even make GIFs** out of them! +Featuring *100 gradually different levels of glitching intensity*! The algorithm used to create glitched images is a slightly modifed version of the popular [ImageGlitcher](https://www.airtightinteractive.com/demos/js/imageglitcher/) tool's algorithm, so you can expect the glitched images to look really cool! + +**NOW WITH GIF TO GLITCHED GIF SUPPORT! Check out the [docs](https://github.com/TotallyNotChase/glitch-this/wiki/Home)!** + +If you like using this tool, please consider **starring on Github**! + + + +What are you waiting for? Import the library and get glitching! + +**NOTE** : Works best with RGB/RGBA images + +Checkout a web demo right [here](https://github.com/pahefu/web-glitch-this), courtesy of @[pahefu](https://github.com/pahefu) + +## What others have to say ~ +* [#1 hot in r/python](https://www.reddit.com/r/Python/comments/f7taiy/my_python_imagegif_glitching_library_is_now_on/) +* [#1 hot in r/programming](https://www.reddit.com/r/programming/comments/f7q2q3/i_made_a_commandline_script_to_make_glitched/) +* [#1 hot in r/broken_gifs](https://www.reddit.com/r/brokengifs/comments/f7pyqw/i_made_a_commandline_script_to_make_glitched_gifs/) +* [#1 hot in r/glitch_art](https://www.reddit.com/r/glitch_art/comments/f7q0hc/i_made_a_script_to_make_glitched_images_and_gifs/) +* [#4 product of the day in producthunt](https://www.producthunt.com/posts/glitch-this) + +<a href="https://www.producthunt.com/posts/glitch-this?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-glitch-this" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=186201&theme=light" alt="glitch-this - Create highly customizable glitched images and GIFs! | Product Hunt Embed" style="width: 250px; height: 54px;" width="250" height="54" /></a> + +## FEATURES! +* Choose any **glitching intensity** between 0.1 and 10.0, yes those are floats! + + *Each level is gradually different*! + + Want just a tiny bit of glitching, enough to make your image look cool? - use level 2 (my favorite)! +* Add **scan lines** for a retro CRT effect! Add **color offset** for even cooler glitching! +* Create **Glitched GIFs** from a normal image! + + That's right, before this tool, I had to manually download each image from [ImageGlitcher](https://www.airtightinteractive.com/demos/js/imageglitcher/), save them, and then head to a GIF creation website. + + Now you can do it *all* at once! +* Glitch normal **GIFs** into **glitched GIFs**! +* Customize **step** of glitching, you can glitch *every step'th frame* instead of all frames! +* **Increment/Decrement glitching intensity** while glitching every frame! + + So you can have a frame *glitched with intensity 2*, but the *next can be 5*, the *next to that can be 8* and so on! + +* Customize the **number of frames** in a GIF as well as their **duration** - all from the comfort of your terminal! +* Set how many times the GIF should **loop**! +* Set your own custom **seed** for a predictable RNG! + +## Changelog +View the changelog [here](https://github.com/TotallyNotChase/glitch-this/blob/master/CHANGELOG.md) + +## Requirements +* `python 3` +* `pillow` +* `numpy` + +These will be automatically installed when you install the library! (assuming you have `python3`) +## Installation + +Simply install `glitch-this` from [pypi](https://pypi.org/project/glitch-this/)! + +``` +pip install glitch-this +``` + +(OR) + +``` +pip3 install glitch-this +``` + +## Quick Start + +Now that you have the library installed, all you need to do is invoke the script and pass in the params + +`glitch_this [IMAGE PATH] [GLITCH_LEVEL]` + + + +Try `glitch_this -h` for more info! Directly from your commandline! + +Or, Check out the [script docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-commandline-script)! + +Interested in the library? Check out the [library docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-glitch-this-library)! + +## DOCS! WHERE TO?! + +Read the [script docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-commandline-script)! + +Read the [library docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-glitch-this-library)! + +Check out a [full example](https://github.com/TotallyNotChase/glitch-this/blob/master/test_script.py) using the library! + +## Whoa! Cool Glitches +Here's some glitched images generated from this script - of different intensity levels! + +**NOTE**: All these images had `-c` parameter included, for color offset + +#### Original image for reference:- + + + +#### Glitched version - Level 2:- + + + +*Not badly glitched now is it?* + +#### Glitched version - Level 5:- + + + +*Well it's certainly starting to get glitchy* + +#### Glitched version - Level 8:- + + + +*I don't know what I'm looking at* + +Let's get some **scan lines** on there! + +#### Glitched version (scan_lines)- Level 2:- + + + +#### Glitched version (scan_lines) - Level 5:- + + + +#### Glitched version (scan_lines) - Level 8:- + + + +That's neat, but how about some GIFs? Here's some GIFs from the same image:- + +*Note: All the GIFs use default values from `FRAMES` and `DURATION`, i.e 23 and 200 respectively* + +#### Glitched GIF - Level 2:- + + + +#### Glitched GIF - Level 5:- + + + +#### Glitched GIF - Level 8:- + + + + + + +%package -n python3-glitch-this +Summary: A package to glitch images and GIFs, with highly customizable options! +Provides: python-glitch-this +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-glitch-this +<h1 align="center">glitch-this!</h1> +<p align="center"><i>Create glitched images and GIFs, with highly customizable options!</i></p> +<hr><p align="center"> + <a href="https://pypi.org/project/glitch-this"><img alt="Pypi release" src="https://img.shields.io/pypi/v/glitch-this?color=red&label=pypi%20release&logo=pypi&logoColor=blue" /></a> + <img alt="Stars" src="https://img.shields.io/github/stars/TotallyNotChase/glitch-this.svg?label=Stars&style=flat" /> + <a href="https://pepy.tech/project/glitch-this"><img alt="Pypi downloads" src="https://pepy.tech/badge/glitch-this" /></a> + <a href="http://www.python.org/download/"><img alt="Python 3" src="https://img.shields.io/badge/Python-3-yellow.svg"></a> + <a href="https://github.com/TotallyNotChase/glitch-this/blob/master/LICENSE"><img src="https://img.shields.io/github/license/TotallyNotChase/glitch-this.svg" alt="License"/></a> +</p> + +A commandline tool + `python` library to glitchify images and **even make GIFs** out of them! +Featuring *100 gradually different levels of glitching intensity*! The algorithm used to create glitched images is a slightly modifed version of the popular [ImageGlitcher](https://www.airtightinteractive.com/demos/js/imageglitcher/) tool's algorithm, so you can expect the glitched images to look really cool! + +**NOW WITH GIF TO GLITCHED GIF SUPPORT! Check out the [docs](https://github.com/TotallyNotChase/glitch-this/wiki/Home)!** + +If you like using this tool, please consider **starring on Github**! + + + +What are you waiting for? Import the library and get glitching! + +**NOTE** : Works best with RGB/RGBA images + +Checkout a web demo right [here](https://github.com/pahefu/web-glitch-this), courtesy of @[pahefu](https://github.com/pahefu) + +## What others have to say ~ +* [#1 hot in r/python](https://www.reddit.com/r/Python/comments/f7taiy/my_python_imagegif_glitching_library_is_now_on/) +* [#1 hot in r/programming](https://www.reddit.com/r/programming/comments/f7q2q3/i_made_a_commandline_script_to_make_glitched/) +* [#1 hot in r/broken_gifs](https://www.reddit.com/r/brokengifs/comments/f7pyqw/i_made_a_commandline_script_to_make_glitched_gifs/) +* [#1 hot in r/glitch_art](https://www.reddit.com/r/glitch_art/comments/f7q0hc/i_made_a_script_to_make_glitched_images_and_gifs/) +* [#4 product of the day in producthunt](https://www.producthunt.com/posts/glitch-this) + +<a href="https://www.producthunt.com/posts/glitch-this?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-glitch-this" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=186201&theme=light" alt="glitch-this - Create highly customizable glitched images and GIFs! | Product Hunt Embed" style="width: 250px; height: 54px;" width="250" height="54" /></a> + +## FEATURES! +* Choose any **glitching intensity** between 0.1 and 10.0, yes those are floats! + + *Each level is gradually different*! + + Want just a tiny bit of glitching, enough to make your image look cool? - use level 2 (my favorite)! +* Add **scan lines** for a retro CRT effect! Add **color offset** for even cooler glitching! +* Create **Glitched GIFs** from a normal image! + + That's right, before this tool, I had to manually download each image from [ImageGlitcher](https://www.airtightinteractive.com/demos/js/imageglitcher/), save them, and then head to a GIF creation website. + + Now you can do it *all* at once! +* Glitch normal **GIFs** into **glitched GIFs**! +* Customize **step** of glitching, you can glitch *every step'th frame* instead of all frames! +* **Increment/Decrement glitching intensity** while glitching every frame! + + So you can have a frame *glitched with intensity 2*, but the *next can be 5*, the *next to that can be 8* and so on! + +* Customize the **number of frames** in a GIF as well as their **duration** - all from the comfort of your terminal! +* Set how many times the GIF should **loop**! +* Set your own custom **seed** for a predictable RNG! + +## Changelog +View the changelog [here](https://github.com/TotallyNotChase/glitch-this/blob/master/CHANGELOG.md) + +## Requirements +* `python 3` +* `pillow` +* `numpy` + +These will be automatically installed when you install the library! (assuming you have `python3`) +## Installation + +Simply install `glitch-this` from [pypi](https://pypi.org/project/glitch-this/)! + +``` +pip install glitch-this +``` + +(OR) + +``` +pip3 install glitch-this +``` + +## Quick Start + +Now that you have the library installed, all you need to do is invoke the script and pass in the params + +`glitch_this [IMAGE PATH] [GLITCH_LEVEL]` + + + +Try `glitch_this -h` for more info! Directly from your commandline! + +Or, Check out the [script docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-commandline-script)! + +Interested in the library? Check out the [library docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-glitch-this-library)! + +## DOCS! WHERE TO?! + +Read the [script docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-commandline-script)! + +Read the [library docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-glitch-this-library)! + +Check out a [full example](https://github.com/TotallyNotChase/glitch-this/blob/master/test_script.py) using the library! + +## Whoa! Cool Glitches +Here's some glitched images generated from this script - of different intensity levels! + +**NOTE**: All these images had `-c` parameter included, for color offset + +#### Original image for reference:- + + + +#### Glitched version - Level 2:- + + + +*Not badly glitched now is it?* + +#### Glitched version - Level 5:- + + + +*Well it's certainly starting to get glitchy* + +#### Glitched version - Level 8:- + + + +*I don't know what I'm looking at* + +Let's get some **scan lines** on there! + +#### Glitched version (scan_lines)- Level 2:- + + + +#### Glitched version (scan_lines) - Level 5:- + + + +#### Glitched version (scan_lines) - Level 8:- + + + +That's neat, but how about some GIFs? Here's some GIFs from the same image:- + +*Note: All the GIFs use default values from `FRAMES` and `DURATION`, i.e 23 and 200 respectively* + +#### Glitched GIF - Level 2:- + + + +#### Glitched GIF - Level 5:- + + + +#### Glitched GIF - Level 8:- + + + + + + +%package help +Summary: Development documents and examples for glitch-this +Provides: python3-glitch-this-doc +%description help +<h1 align="center">glitch-this!</h1> +<p align="center"><i>Create glitched images and GIFs, with highly customizable options!</i></p> +<hr><p align="center"> + <a href="https://pypi.org/project/glitch-this"><img alt="Pypi release" src="https://img.shields.io/pypi/v/glitch-this?color=red&label=pypi%20release&logo=pypi&logoColor=blue" /></a> + <img alt="Stars" src="https://img.shields.io/github/stars/TotallyNotChase/glitch-this.svg?label=Stars&style=flat" /> + <a href="https://pepy.tech/project/glitch-this"><img alt="Pypi downloads" src="https://pepy.tech/badge/glitch-this" /></a> + <a href="http://www.python.org/download/"><img alt="Python 3" src="https://img.shields.io/badge/Python-3-yellow.svg"></a> + <a href="https://github.com/TotallyNotChase/glitch-this/blob/master/LICENSE"><img src="https://img.shields.io/github/license/TotallyNotChase/glitch-this.svg" alt="License"/></a> +</p> + +A commandline tool + `python` library to glitchify images and **even make GIFs** out of them! +Featuring *100 gradually different levels of glitching intensity*! The algorithm used to create glitched images is a slightly modifed version of the popular [ImageGlitcher](https://www.airtightinteractive.com/demos/js/imageglitcher/) tool's algorithm, so you can expect the glitched images to look really cool! + +**NOW WITH GIF TO GLITCHED GIF SUPPORT! Check out the [docs](https://github.com/TotallyNotChase/glitch-this/wiki/Home)!** + +If you like using this tool, please consider **starring on Github**! + + + +What are you waiting for? Import the library and get glitching! + +**NOTE** : Works best with RGB/RGBA images + +Checkout a web demo right [here](https://github.com/pahefu/web-glitch-this), courtesy of @[pahefu](https://github.com/pahefu) + +## What others have to say ~ +* [#1 hot in r/python](https://www.reddit.com/r/Python/comments/f7taiy/my_python_imagegif_glitching_library_is_now_on/) +* [#1 hot in r/programming](https://www.reddit.com/r/programming/comments/f7q2q3/i_made_a_commandline_script_to_make_glitched/) +* [#1 hot in r/broken_gifs](https://www.reddit.com/r/brokengifs/comments/f7pyqw/i_made_a_commandline_script_to_make_glitched_gifs/) +* [#1 hot in r/glitch_art](https://www.reddit.com/r/glitch_art/comments/f7q0hc/i_made_a_script_to_make_glitched_images_and_gifs/) +* [#4 product of the day in producthunt](https://www.producthunt.com/posts/glitch-this) + +<a href="https://www.producthunt.com/posts/glitch-this?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-glitch-this" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=186201&theme=light" alt="glitch-this - Create highly customizable glitched images and GIFs! | Product Hunt Embed" style="width: 250px; height: 54px;" width="250" height="54" /></a> + +## FEATURES! +* Choose any **glitching intensity** between 0.1 and 10.0, yes those are floats! + + *Each level is gradually different*! + + Want just a tiny bit of glitching, enough to make your image look cool? - use level 2 (my favorite)! +* Add **scan lines** for a retro CRT effect! Add **color offset** for even cooler glitching! +* Create **Glitched GIFs** from a normal image! + + That's right, before this tool, I had to manually download each image from [ImageGlitcher](https://www.airtightinteractive.com/demos/js/imageglitcher/), save them, and then head to a GIF creation website. + + Now you can do it *all* at once! +* Glitch normal **GIFs** into **glitched GIFs**! +* Customize **step** of glitching, you can glitch *every step'th frame* instead of all frames! +* **Increment/Decrement glitching intensity** while glitching every frame! + + So you can have a frame *glitched with intensity 2*, but the *next can be 5*, the *next to that can be 8* and so on! + +* Customize the **number of frames** in a GIF as well as their **duration** - all from the comfort of your terminal! +* Set how many times the GIF should **loop**! +* Set your own custom **seed** for a predictable RNG! + +## Changelog +View the changelog [here](https://github.com/TotallyNotChase/glitch-this/blob/master/CHANGELOG.md) + +## Requirements +* `python 3` +* `pillow` +* `numpy` + +These will be automatically installed when you install the library! (assuming you have `python3`) +## Installation + +Simply install `glitch-this` from [pypi](https://pypi.org/project/glitch-this/)! + +``` +pip install glitch-this +``` + +(OR) + +``` +pip3 install glitch-this +``` + +## Quick Start + +Now that you have the library installed, all you need to do is invoke the script and pass in the params + +`glitch_this [IMAGE PATH] [GLITCH_LEVEL]` + + + +Try `glitch_this -h` for more info! Directly from your commandline! + +Or, Check out the [script docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-commandline-script)! + +Interested in the library? Check out the [library docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-glitch-this-library)! + +## DOCS! WHERE TO?! + +Read the [script docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-commandline-script)! + +Read the [library docs](https://github.com/TotallyNotChase/glitch-this/wiki/Documentation:-The-glitch-this-library)! + +Check out a [full example](https://github.com/TotallyNotChase/glitch-this/blob/master/test_script.py) using the library! + +## Whoa! Cool Glitches +Here's some glitched images generated from this script - of different intensity levels! + +**NOTE**: All these images had `-c` parameter included, for color offset + +#### Original image for reference:- + + + +#### Glitched version - Level 2:- + + + +*Not badly glitched now is it?* + +#### Glitched version - Level 5:- + + + +*Well it's certainly starting to get glitchy* + +#### Glitched version - Level 8:- + + + +*I don't know what I'm looking at* + +Let's get some **scan lines** on there! + +#### Glitched version (scan_lines)- Level 2:- + + + +#### Glitched version (scan_lines) - Level 5:- + + + +#### Glitched version (scan_lines) - Level 8:- + + + +That's neat, but how about some GIFs? Here's some GIFs from the same image:- + +*Note: All the GIFs use default values from `FRAMES` and `DURATION`, i.e 23 and 200 respectively* + +#### Glitched GIF - Level 2:- + + + +#### Glitched GIF - Level 5:- + + + +#### Glitched GIF - Level 8:- + + + + + + +%prep +%autosetup -n glitch-this-1.0.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-glitch-this -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.2-1 +- Package Spec generated @@ -0,0 +1 @@ +00f17b95d9ef3a6f3b5c93a4db2d448e glitch_this-1.0.2.tar.gz |