You are not logged in.

#1 2018-04-02 12:58:43

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,744

blurryCircles

A script for the benefit of making blurry circular wallpapers.

needs: maim or scrot, schemer2 (https://github.com/thefryscorer/schemer2), imagemagick

notes:
- You will need go environment to build schemer2
- 99% of resulting images are only usable for deletion

video: https://youtu.be/y8BToDd1BOA

example:
3kyushu_1434APR0218.th.png

with subtle scanline fx (scanlines="true")
0prizefighter_2220APR0318.th.png

rays (run as: blurryCircles rays)
3dark_2329APR0318.th.png

rays (rayCrop="true")
1falwells_1744APR0418.th.png

Last edited by brontosaurusrex (2018-04-04 16:06:07)

Offline

#2 2018-04-02 13:14:33

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,089
Website

Re: blurryCircles

Thank you very much for this, it really is appreciated.

I'm already using the one you posted in the screenshots thread as my Alpine desktop wallpaper smile

EDIT: doesn't work with OpenBSD, I'm hitting this error:

https://github.com/naelstrof/maim/issues/127

I've tried rebuilding graphics/maim from ports with GCC as the compiler but it still craps out  8.(

Last edited by Head_on_a_Stick (2018-04-02 14:06:53)

Offline

#3 2018-04-02 14:11:55

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,744

Re: blurryCircles

I think it should be easy to replace maim/slop with scrot, give me a sec. edit: Done.

Last edited by brontosaurusrex (2018-04-02 14:18:44)

Offline

#4 2018-04-02 14:56:04

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,089
Website

Re: blurryCircles

OK, thanks, we're getting closer big_smile

I think you need to add a check for ImageMagick as well if you're going to use the `mogrify` command.

Also, the script appears to be POSIX-compliant free of bashisms and so can be run with a plain /bin/sh shebang to gain in speed and lose some bugs and memory usage.

I'm now failing with this error:

Could not get colors from image with settings specified. Aborting.

^ I think that's from the `schemer2` command, I will investigate some more...

EDIT: that error only appears if the selected area is too small, it works if I select a larger area:

2018-04-02-160739_1280x800_scrot.th.png

Sweet! cool

EDIT2: made an OpenBSD fork:

https://raw.githubusercontent.com/Head- … rryCircles

big_smile

Last edited by Head_on_a_Stick (2018-04-02 15:18:06)

Offline

#5 2018-04-02 15:13:52

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,744

Re: blurryCircles

I'am glad you got it working. mogrify is optional and it should check itself with 'mogrify --version && stuff'. It should mostly be only usefull for very dark selections, where schemer would fail or behave boringly.

Changelog: Added some randomization to parameters. Option to select maim or scrot, mogrify and convert are now required. Fx scan lines added as an option (would need some work to make it resolution independent). This drops some image into alpha which provides a nice effect and also an option to do some color corrections in nitrogen via changing the bg color.

Last edited by brontosaurusrex (2018-04-03 05:21:23)

Offline

#6 2018-04-03 18:30:53

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: blurryCircles

very nice!
schemer2 was actually really easy to compile, i'm surpirsed.
and it's a really nice app.

your script:
i have a perfectly b/w wallpaper, and it created 5 subdued, but definitely colourful papers from it; so what happened there?
and why is there a "set -x" halfway down?

Offline

#7 2018-04-03 18:32:13

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,744

Re: blurryCircles

i have a perfectly b/w wallpaper, and it created 5 subdued, but definitely colourful papers from it

Scrot or maim? If scrot, find the scrot line and make delay longer, like one second

scrot -s -d 1 "$tmpdir/$name"

edit: That's now a new default.

and why is there a "set -x" halfway down?

Asuming this would be patched to some shortcut, also still in dev stage, super final version will probably not have that.

Last edited by brontosaurusrex (2018-04-03 20:33:53)

Offline

#8 2018-04-04 05:12:37

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: blurryCircles

brontosaurusrex wrote:

i have a perfectly b/w wallpaper, and it created 5 subdued, but definitely colourful papers from it

Scrot or maim? If scrot, find the scrot line and make delay longer, like one second

i'm using maim, and i set the delay longer just in case.
however, my previous statement was wrong:
a) the image is grayscale, not black and white
b) it was an RGB image, just desaturated. i saved it as grayscale, and ran blurryCircles again, and now the result is grayscale.

another question: what does the actual image rendering? its schemer2, isn't it? i don't quite like the quality. gradient banding is pretty bad imo.
but your examples look much better.
i wonder what's going on there...

Offline

#9 2018-04-04 06:13:56

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,744

Re: blurryCircles

was an RGB image, just desaturated. i saved it as grayscale, and ran blurryCircles again, and now the result is grayscale.

There is an auto levels step, that doesn't really work fine on all of input (now disabled in rays mode).  Also there is schemer2 parameter that defines min diff between values, so it might be trying to hard to find colors, when there is none or little. (Guessing here, for a real answer check the schemer source code).

The quality is not perfect, actually I put 99 percent of stuff to trash, try scan line effect, it should hide some of the banding problems. With rays iam doing 3x over sizing to fight aliasing.

And yes most rendering or the slowest step is schemer2, you can get even slower with enabling pngcrush step.

Last edited by brontosaurusrex (2018-04-04 21:11:24)

Offline

Board footer

Powered by FluxBB