Git Product home page Git Product logo

gruvbox-factory's Introduction

gruvbox-factory ๐Ÿญ

License PyPI

"The main focus when developing gruvbox is to keep colors easily distinguishable, contrast enough and still pleasant for the eyes" - morhetz

example of gruvbox-factory

  • A simple cli to convert manufacture a gruvbox themed wallpaper;
  • Now supports "hipster" mode, passing image paths as arguments;
  • Now has two different palettes: panther "pink" and snoopy white;

Installation โฌ‡๏ธ

pip3 install gruvbox-factory

Usage โŒจ๏ธ

The cli has two modes:

  • ๐Ÿ”ฎ wizard: type gruvbox-factory anywhere in your terminal and folllow the instructions โœจ
  • ๐Ÿ’ฝ hipster: type gruvbox-factory -h and check how to use in CLI mode ๐Ÿ˜‰

Credits ๐ŸŽฅ

Contributing ๐Ÿ’•

  • โญ If you like it, leave your star in this project
  • ๐Ÿ’Ÿ If you would like to complain/suggest/contribute to this project, feel free to open a issue
  • โœ๏ธ Add your name in the "Contributors section after when opening a PR

Contributors โœ๏ธ

gruvbox-factory's People

Contributors

gabulhas avatar h4ppy-04 avatar jasonmishi avatar kuuhhl avatar marcelofern avatar paulopacitti avatar perpetualcreations avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gruvbox-factory's Issues

Warnings: files not on PATH

Linux noob on Ubuntu 20.04. Just installed gruvbox-factory, but received several warnings at the end indicating some scripts not installed on PATH (re: cmark, pygmentize, gruvbox-factory). How to fix pls.

Does not Recognise or finds the wallpaper

When ever I fire the gruvbox factory it shows everything and is installed just fine but when I enter the image path from home it does not find any image and exits

image

Is their any way you can add a gui to select the image when you enter the facotry or tell me what error is this ?

Compression Settings

Hey guys! Just wondering if there's a way to change the compression settings, as I've noticed some of the converted images have more RGB noise than the originals.

Palette names

The palette names are confusing and not straight-forward for a new user.

These were all my tries until I got the correct palette name ๐Ÿ˜‚

  1. panther pink
  2. panther
  3. 'pink'
  4. 'panther pink'
  5. pink

I mean it could just be me being dumb, but maybe the instructions could be more clear in the CLI.

Install instructions

Would it be possible to add some install instructions on the README please?

I've just done a fresh Arch install, but I don't have pip3 and I'm not sure what the easiest way forward would be to use the gruvbox-factory tool.

Shutting down after error

I think instead of having the tool shut down (after you enter a wrong color palette name or file that doesn't exist), the tool shouldn't shut down but instead restart. It's kinda annoying to retype everything.

A bonus feature would have the tool restarted at the same step, so basically it'd ask for the information repeatedly until valid info is given.

KeyError: ''

I am having the following error when converting an image:
image

libs:
image-go-nord==0.1.1
gruvbox-factory==0.1.1
rich==10.1.0

Python 3.9.

WARNING: The script cmark is installed in '/home/user/.local/bin' which is not on PATH.

This error msg showed when i ran the installation lines.
I am using Linux mint 20.3
There is another report of this anomaly but no response is there.

  • the terminal processes looks like this *

pip3 install gruvbox-factory
Collecting gruvbox-factory
Downloading gruvbox_factory-1.0.0-py3-none-any.whl (5.3 kB)
Collecting rich
Downloading rich-12.6.0-py3-none-any.whl (237 kB)
|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 237 kB 390 kB/s
Collecting image-go-nord
Downloading image_go_nord-0.1.5-py3-none-any.whl (11 kB)
Collecting commonmark<0.10.0,>=0.9.0
Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 51 kB 711 kB/s
Collecting pygments<3.0.0,>=2.6.0
Downloading Pygments-2.13.0-py3-none-any.whl (1.1 MB)
|โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 1.1 MB 368 kB/s
Collecting typing-extensions<5.0,>=4.0.0; python_version < "3.9"
Downloading typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Requirement already satisfied: Pillow in /usr/lib/python3/dist-packages (from image-go-nord->gruvbox-factory) (7.0.0)
Installing collected packages: commonmark, pygments, typing-extensions, rich, image-go-nord, gruvbox-factory
WARNING: The script cmark is installed in '/home/amlan/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script pygmentize is installed in '/home/amlan/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script gruvbox-factory is installed in '/home/amlan/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed commonmark-0.9.1 gruvbox-factory-1.0.0 image-go-nord-0.1.5 pygments-2.13.0 rich-12.6.0 typing-extensions-4.4.0

video

can you use this to convert videos or not?
if not can you add the feature if it's possible?

Translation to other languages?

I enjoy this utility, simple and easy to use. So i was thinking about translating it to more languages so more people could use it. I personally just speak 2 languages fluently so i could translate it to the other language. If you think its a good idea, let me know and ill start working on it as soon as a I have time :)

No Support for shell glob "*", no support for multiple image files

If I use the * wild card:

โฏ gruvbox-factory
โฏ /mnt/d/niabc/Pictures/Wallpapers/*
Traceback (most recent call last):
  File "/home/pure-cheekbones/anaconda3/bin/gruvbox-factory", line 8, in <module>
    sys.exit(main())
  File "/home/pure-cheekbones/anaconda3/lib/python3.9/site-packages/factory/__main__.py", line 23, in main
    add_gruvbox_palette(gruvbox_factory, args.palette)
  File "/home/pure-cheekbones/anaconda3/lib/python3.9/site-packages/factory/__main__.py", line 89, in add_gruvbox_palette
    with open(str(current_path) + '/gruvbox-' + palette + '.txt', 'r') as f:
TypeError: can only concatenate str (not "NoneType") to str

And it appears that it doesn't support adding multiple images as input.
I recommend using the glob library, using *args, **kwargs etc...

Accept filepath as argument

The tool already has a good-looking CLI, but it would be nice to pass the target file as an argument to the script.

The use case is allowing for tab completion or even scripting for multiple files.

Great tool btw :)

Unable to process any image - Getting Type Error.

Ive used this program in the past with success but whipped it out again and I've been having issues. Perhaps Im just doing something wrong.

I get the following after providing a image.

Traceback (most recent call last):
  File "/home/gcc/.local/bin/gruvbox-factory", line 8, in <module>
    sys.exit(main())
  File "/home/gcc/.local/lib/python3.9/site-packages/factory/__main__.py", line 32, in main
    gruvbox_factory.convert_image(image, save_path=('gruvbox_' + image_file))
  File "/home/gcc/.local/lib/python3.9/site-packages/ImageGoNord/GoNord.py", line 425, in convert_image
    self.converted_loop(is_rgba, pixels, original_pixels, image.size[0], image.size[1])
  File "/home/gcc/.local/lib/python3.9/site-packages/ImageGoNord/GoNord.py", line 399, in converted_loop
    pixels[row, col] = tuple(colors_list)
TypeError: function takes at least 3 arguments (0 given)

Here is my python version:
pip 20.3.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)

Gruvbox-factory can't convert certain files

It gives me the "we had a problem in the pipeline! Make sure you're in the same path of the image you want to convert! " Even though I am in the same directory. Below is an example of a file that doesn't work, I also have another image that is 2.11 megabytes (the one below is 7.91 MiB) that wont open either, but I cant find a link to it.

I also been having a separate issue (I'm being lazy and including 2 issues in one sorry) that it changes some lighter beige tones into bright pink, instead of perhaps a more palatable warm white color, and some white-ish colors into light blues. The second link, (first image on the page of the guy with a knife) is a perfect example of that.
Thank you.

https://unsplash.com/photos/aL7SA1ASVdQ

https://www.google.com/url?sa=i&url=https%3A%2F%2Fwallpaperaccess.com%2Fminimalist-anime&psig=AOvVaw2blQ-GSzgyzqp29nl6C-OR&ust=1617472547003000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCJCzn4KR4O8CFQAAAAAdAAAAABAD

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.