[ / / / / / / / / / / / / / ] [ dir / random / abdl / feet / fringe / hydrus / lewd / s / tech / tingles ]

/qresearch/ - Q Research

Research and discussion about Q's crumbs
Name
Email
Subject
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Voice recorder Show voice recorder

(the Stop button will be clickable 5 seconds after you press Record)
Options

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 16 MB.
Max image dimensions are 15000 x 15000.
You may upload 5 per post.


Welcome Page | Index | Archive | Voat Subverse | Poal Sub | Q Posts | Notables | Q Proofs
Q's Board: /projectdcomms/ | Bakers Board: /Comms/ | Legacy Boards: /CBTS/ /TheStorm/ /GreatAwakening/ | Politics News & Debate: /pnd/

YouTube embed. Click thumbnail to play.

000000  No.10605070

I made a script to fill 20% of an image with a random color. I will update the script to perform additional evasive maneuvers as time goes on.

https://pastebin.com/tx2LFxH6

Use it by saving the pastebin to a text file IN ITS OWN DIRECTORY called main.py

Make sure you install PIL. On linux the command is python3 -m pip install PIL

Make the .py file executable, use the following command to select a process type and an image, use a FULL PATH for the image.

e.x. ./main.py process_type=d20 input-file=/full/path/to/image.png

The output image is saved in the directory main.py exists in

Feature Requests welcome.

Bug Reports welcome.

Enjoy ;)

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

000000  No.10605140

>>10605070

I messed up my own command, and 8kun has chosen to use common syntax for purple text :*(

./main.py --process_type=d20 --input_file=/full/path/to/image.png

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

000000  No.10605334

Updated to randomize every color value of fill color

https://pastebin.com/JJ8PhPNb

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a8a0ed  No.10605681

awesome

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

000000  No.10606784

>>10605681

LMK if there's any feature you want.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

932e15  No.10608753

>>10605334

I am a techno-dolt and have no idea how to do what you are describing, but thank you so much for coming to the rescue, so those who do know how to meme have ammo for what's coming.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

22b5e9  No.10609080

>>10605070

>./main.py process_type=d20 input_file=/full/path/to/image.png

TY ANON.

Could you post examples in pic form or vid form?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

000000  No.10611803

>>10609080

>>10605140

This has the command you want. The –process_type flag only exists because I assume the 20% thing won't work forever, the toughest part is getting the full path to the image.

In windows it should look something like c:\full\path\to\image.png on linux it looks like /full/path/to/image.png

Step by Step for Windows

Install python3 make sure you install pip as well, it comes with it, just don't uncheck any of the options

https://techdator.net/install-python-windows-10/

Verify pip is installed by opening a command prompt and typing 'pip -v' a version number should come up, if it says pip isn't found reinstall python3 and make sure you got the pip option selected.

Once pip is working, type

pip install PIL

pip will download and install PIL

Now create a folder that is empty anywhere, this is the working directory, name it anything. Take note of the full path where you create this directory.

Inside the empty folder create a text file and put the contents of https://pastebin.com/JJ8PhPNb into it, save the file as main.py

Open your command prompt again, or reuse the one you used to test pip navigate to the directory you create and put main.py into. The command for this is

cd c:\full\path\to\directory\you\created

run the script by typing

python3 .\main.py --process_type=20 --input_file=c:\full\path\to\image.png

The processed image will appear in the working directory you created with main.py in it.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

000000  No.10612062

If those instructions don't work, and I'm not sure they do, I don't have windows, Try installing this https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6?activetab=pivot:overviewtab

It gives you the excellence of linux without the hassle of windows and I can give instructions verbatim

For Linux users

In terminal

sudo apt-get update

sudo apt-get install python3

python3 -m pip install PIL

cd ~

mkdir ./wylfwt

Get contents of https://pastebin.com/JJ8PhPNb

Again in terminal

vi ./main.py

Press i to get into insert mode.

Press ctrl+v to paste the contents of the pastebin in the file.

Press esc to get out of insert mode.

Type :wq to save and exit main.py

Again in terminal

chmod +x ./main.py

Now get the full path of the image you want to change.

Again in terminal

python3 ./main.py --process_type=d20 --input_file=c:\full\path\to\image.png

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

000000  No.10612157

>>10612062

Updated instructions to actually be step by step. I'm not good at explaining things.

If those instructions don't work, and I'm not sure they do, I don't have windows, Try installing this https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6?activetab=pivot:overviewtab

It gives you the excellence of linux without the hassle of windows and I can give instructions verbatim

For Linux users

In terminal

sudo apt-get update

Press Enter

sudo apt-get install python3

Press Enter

python3 -m pip install PIL

Press Enter

cd ~

Press Enter

mkdir ./wylfwt

Get contents of https://pastebin.com/JJ8PhPNb highlight it all, make sure you get it all and copy it.

Again in terminal

cd ./wylfwt

vi ./main.py

Press i to get into insert mode.

Press ctrl+v to paste the contents of the pastebin in the file.

Press esc to get out of insert mode.

Type :wq followed by Enter to save and exit main.py

Again in terminal

chmod +x ./main.py

Press Enter

Now get the full path of the image you want to change.

Again in terminal

python3 ./main.py --process_type=d20 --input_file=c:\full\path\to\image.png

Press Enter

The modified image will be in the same directory main.py is in.

If you have any questions I'm here to help.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Nerve Center][Random][Post a Reply]
[]
[ / / / / / / / / / / / / / ] [ dir / random / abdl / feet / fringe / hydrus / lewd / s / tech / tingles ]