It is currently Fri Apr 26, 2024 11:11 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 63 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 10:44 am  (#21) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Sallyanne wrote:
Quote:
I have downloaded it had a little play but have not been able to find where I can save the finished pic. On the site or on the program.

In PicToBrick, once you've generated a mosaic an "Output documents" button appears just below the "Generate mosaic" button - click that new button and you get a list of output options at the top of the control column. Tick the "Image" checkbox and press the "Generate documents" button at the foot of the list.
PicToBrick will then create a new folder for the mosaic (in the configured working directory) - in there is a subfolder "data" containing a file "mosaic.jpg". (You can ignore all the other output options and bumph generated!)


Top
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 1:00 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
paynekj wrote:
This all reminds me of how we were playing around with POVRay a couple of years ago: http://gimpchat.com/viewtopic.php?f=22& ... =70#p56212

Kevin


Thanks for the reminder Kevin; haven't installed all my Script-fus/Python plugins since my computer crashed a few months ago. Will soon do so, but not at the moment (brain drain right now; lol). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 2:05 pm  (#23) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7715
Location: On the other side of this screen
Thank you jontait2. I will have another look later.

_________________


Top
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 2:18 pm  (#24) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
I just wish Pic2brick would allow you to re-open the file for additional tweaks. They've not updated the program in a long time now either. Maybe I asketh for too mucheth. lol

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 3:21 pm  (#25) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
OK; had a brain fart and figured out a way to get the selections (still convoluted, but doable). Now I can do a better job at creating 3D Legos but now the lego pieces won't a have the seams that the original tute (don't ask me the link; way too lazy to find it) had (i.e., you can have distinct pieces like right angles, multiple lenth straights, vertical and horizontal, etc.). :)


Attachments:
mosaic.jpg
mosaic.jpg [ 2.53 MiB | Viewed 1816 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 5:57 pm  (#26) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Clouds wrote:
Quote:
Unfortunately I don't really know the "rules" of designing a ministeck. For example, a lot of the solid color areas could easily have been filled with 2x2 squares, but were not by the programs mentioned already in this thread. Why not? Well, a grid of 2x2 squares looks boring, so that's probably enough reason. :P But, then what is the rule for deciding what to do instead? For example, maybe you're supposed to use equal counts of each shape piece? I don't know, and my script merely renders the conceptually simple, boring 2x2 squares.

I don't think there are any well-defined rules for Ministeck but one element used is randomness- if you run PicToBrick repeatedly on a solid colour background you'll find it produces different results each time!
eg:

Image


Top
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 7:13 pm  (#27) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Clouds wrote:
lylejk wrote:
just wish this plugin could be implemented in G'MIC easily or even a Script-fu.

I'd never heard of a "ministeck" before, but this looked like an interesting puzzle. Here's a G'MIC custom script that will sort-of replicate the concept:
RescaleSmallestDim=128 RescaleMethod=1
Colors=7 ColorMethod=1 MapContrast=1.0 Dither=0.0
TileSize=5 TileHighlight=0.10 TileShadow=0.15
PixelSize=2

-repeat @# -l[$>]
-resize_ratio2d $RescaleSmallestDim,$RescaleSmallestDim,1,$RescaleMethod
--colormap $Colors,$ColorMethod AA={ia} --[-1] $AA -*[-1] $MapContrast -+[-1] $AA
-index[0] [-1],$Dither,1 -c 5,250 -rm[-1]
--l --[0] {im-1} MM={iM} -s c -repeat @# -+[$>] $> -*[$>] {($MM+1)^$>} -done -+
--label_fg[0] 0 --area_fg[0] 0 -repeat 3 --neq[2] {$>+1} -*[0] [-1] -oneminus[-1] -*[-1] [1] -done
--r[0] 50%,50%,@{0,d},@{0,s},1 -r[-1] [0],1 -replace[-1] 0,-1 -neq[-1] [0] --oneminus[-1] -*[-1] [1] -*[-2] [1] -rm[0,1,2]
50%,50%,1,1,'x+y*w' -r[-1] [0],1
-mv[-1] 0
-r {$TileSize*100}%,{$TileSize*100}%,1,1,1
-repeat @# -l[$>]
(1,0,1;0,0,0;1,0,1) -normalize_sum[1] --convolve[0] [1] -rm[1] -- -eq 0
-endl -done
-min -dilate 2
(1,0;0,-1) -convolve[-2] [-1] -rm[-1] -+[-1] 1 -c[-1] {1+$TileHighlight},{1-$TileShadow}
-endl -rv -r[-1] {w*$TileSize},{h*$TileSize} -shift[-1] -1,-1 -*[-1] [0] --[0] 1 -*[0] 128 -+[-1] [0] -rm[0] -r {w-1},{h-1},100%,100%,0 -r {$PixelSize*100}%,{$PixelSize*100}%,100%,100%,1
-endl -done

All the parameters are in variables at the top. It'd be easy enough to make it an entry in the GIMP plugin.

Unfortunately I don't really know the "rules" of designing a ministeck. For example, a lot of the solid color areas could easily have been filled with 2x2 squares, but were not by the programs mentioned already in this thread. Why not? Well, a grid of 2x2 squares looks boring, so that's probably enough reason. :P But, then what is the rule for deciding what to do instead? For example, maybe you're supposed to use equal counts of each shape piece? I don't know, and my script merely renders the conceptually simple, boring 2x2 squares.

Attached is the result on your forum icon, Lyle, except with "MapContrast" set to 0.9 (for dimmer white/black tiles).

Nice!
Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 8:07 pm  (#28) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
I like it Rod.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 8:23 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Yup; now on a Legos binge again. lolol

:)

ref: http://www.fontplay.com/freephotos/seve ... 107-08.jpg


Attachments:
mosaic.jpg
mosaic.jpg [ 3.45 MiB | Viewed 1802 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 9:10 pm  (#30) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I can't seem to get the compiler to see mono. I added it to my fstab file but i get this error when compiling.


Rod@Rods ~
$ cd c:users/rod/desktop/gimp-sharp-0.18/gimp-sharp-0.18

Rod@Rods /c/users/rod/desktop/gimp-sharp-0.18/gimp-sharp-0.18
$ ./configure -I/mono/include
configure: error: unrecognized option: `-I/mono/include'
Try `./configure --help' for more information

Rod@Rods /c/users/rod/desktop/gimp-sharp-0.18/gimp-sharp-0.18
$ ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... x86_64-w64-mingw32-gcc.exe
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-w64-mingw32-gcc.exe accepts -g... yes
checking for x86_64-w64-mingw32-gcc.exe option to accept ISO C89... none needed
checking dependency style of x86_64-w64-mingw32-gcc.exe... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-w64-mingw32-gcc.exe... c:/petit-msys-mingw-64bits
-gimp28/base/c/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (c:/petit-msys-mingw-64bits-gimp28/base/c/x86_64-w64-ming
w32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nm
checking the name lister (/mingw/bin/nm) interface... BSD nm
checking whether ln -s works... no, using cp -p
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-mingw32 file names to i686-pc-mingw32 format...
func_convert_file_msys_to_w32
checking how to convert i686-pc-mingw32 file names to toolchain format... func_c
onvert_file_msys_to_w32
checking for c:/petit-msys-mingw-64bits-gimp28/base/c/x86_64-w64-mingw32/bin/ld.
exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|
^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_imp
lib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw/bin/nm output from x86_64-w64-mingw32-gcc.exe o
bject... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... x86_64-w64-mingw32-gcc.exe -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if x86_64-w64-mingw32-gcc.exe supports -fno-rtti -fno-exceptions... no
checking for x86_64-w64-mingw32-gcc.exe option to produce PIC... -DDLL_EXPORT -D
PIC
checking if x86_64-w64-mingw32-gcc.exe PIC flag -DDLL_EXPORT -DPIC works... yes
checking if x86_64-w64-mingw32-gcc.exe static flag -static works... yes
checking if x86_64-w64-mingw32-gcc.exe supports -c -o file.o... yes
checking if x86_64-w64-mingw32-gcc.exe supports -c -o file.o... (cached) yes
checking whether the x86_64-w64-mingw32-gcc.exe linker (c:/petit-msys-mingw-64bi
ts-gimp28/base/c/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes

checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /mingw/bin/pkg-config
checking for mono... /c/Program Files (x86)/Mono-3.2.3/bin/mono
checking pkg-config is at least version 0.9.0... yes
checking for MONO... no
configure: error: Package requirements (mono >= 2.8) were not met:

No package 'mono' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MONO_CFLAGS
and MONO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Rod@Rods /c/users/rod/desktop/gimp-sharp-0.18/gimp-sharp-0.18
$


Not sure why the compiler can find the executable but not the header and lib files.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Online Ministeck.
PostPosted: Fri Jan 09, 2015 9:13 pm  (#31) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
I just copy/pasted into G'MIC's Global input and created a preset Rod. That, at least, worked for me. Kept it all in the GIMP too; easy/peasy. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Online Ministeck.
PostPosted: Sat Jan 10, 2015 9:53 am  (#32) 
Offline
GimpChat Member

Joined: Jan 09, 2015
Posts: 22
jontait2 wrote:
I don't think there are any well-defined rules for Ministeck but one element used is randomness- if you run PicToBrick repeatedly on a solid colour background you'll find it produces different results each time!
Ah, OK, well I can do that. :)

Here's a version with randomness, and also works on images with alpha.
RescaleSmallestDim=128 RescaleMethod=1
Colors=7 ColorMethod=1 MapContrast=1.0 Dither=0.0
TileSize=5 TileHighlight=0.08 TileShadow=0.12
PixelSize=2

-repeat @# -l[$>]
-resize_ratio2d $RescaleSmallestDim,$RescaleSmallestDim,1,$RescaleMethod
-split_opacity --colormap[0] $Colors,$ColorMethod AA={ia} --[-1] $AA -*[-1] $MapContrast -+[-1] $AA
-index[0] [-1],$Dither,1 -c[0] 5,250 -rm[-1] -a c

--l
--[0] {im-1} MM={iM} -s c -repeat @# -+[$>] $> -*[$>] {($MM+1)^$>} -done -+
50%,50%,1,1,'x+y*w' -r[-1] [0],1 --*[-1] 0 -noise[-1] 25,2 -*[-1] -1 -n[-1] -1,1 -*[-1,-2]
-repeat 6 --*[-1] 0 -noise[-1] 1,1 --dilate[-1] 3 -eq[-1,-2] -area_fg[-1] 0 -eq[-1] 1 --label_fg[-1] 0 -*[-2] [0] -dilate[-2,-1] 2 -replace[-2] 0,-1 -eq[-2] [0]
-area_fg[-2] 0 -gt[-2] 3 -oneminus[-2] -*[1] [-2] -*[0] [-2] -oneminus[-2] -*[-1,-2] -done
-r {$TileSize*w},{$TileSize*h},1,1,1
-repeat @# -l[$>] (1,0,1;0,0,0;1,0,1) -normalize_sum[1] --convolve[0] [1] -rm[1] -- -eq 0 -endl -done
-min -dilate 2
(1,0;0,-1) -convolve[-2] [-1] -rm[-1] -+[-1] 1 -c[-1] {1+$TileHighlight},{1-$TileShadow}
-endl

-rv -r[-1] {w*$TileSize},{h*$TileSize} -shift[-1] -1,-1
-split_opacity[-1] -*[1] [0] --[0] 1 -*[0] 128 -+[1] [0] -rm[0] -a c
-r {w-1},{h-1},100%,100%,0 -r {$PixelSize*w},{$PixelSize*h},100%,100%,1
-c 0,255
-endl -done


By the way, as it turns out, I had set up a lot of steps in my original (more boring) script in preparation for adding randomness...but never actually did when I posted it. So, there was a lot of 100% useless calculation going on. Oops! :oops: I've edited my original post with a cleaned-up version, that also works on images with alpha channels too. It's also in the following spoiler.
RescaleSmallestDim=128 RescaleMethod=1
Colors=7 ColorMethod=1 MapContrast=1.0 Dither=0.0
TileSize=5 TileHighlight=0.08 TileShadow=0.12
PixelSize=2

-repeat @# -l[$>]
-resize_ratio2d $RescaleSmallestDim,$RescaleSmallestDim,1,$RescaleMethod
-split_opacity --colormap[0] $Colors,$ColorMethod AA={ia} --[-1] $AA -*[-1] $MapContrast -+[-1] $AA
-index[0] [-1],$Dither,1 -c[0] 5,250 -rm[-1] -a c
--l -s c
50%,50%,1,1,'x+y*w' -r[-1] [0],1
-r {$TileSize*w},{$TileSize*h},1,1,1
-repeat @# -l[$>] (1,0,1;0,0,0;1,0,1) -normalize_sum[1] --convolve[0] [1] -rm[1] -- -eq 0 -endl -done -min -dilate 2
(1,0;0,-1) -convolve[-2] [-1] -rm[-1] -+[-1] 1 -c[-1] {1+$TileHighlight},{1-$TileShadow}
-endl
-rv -r[-1] {w*$TileSize},{h*$TileSize} -shift[-1] -1,-1
-split_opacity[-1] -*[1] [0] --[0] 1 -*[0] 128 -+[1] [0] -rm[0] -a c
-r {w-1},{h-1},100%,100%,0 -r {$PixelSize*w},{$PixelSize*h},100%,100%,1
-c 0,255
-endl -done


Attachments:
File comment: The G'MIC mascot Gmicky, filtered in ministeck style with my improved script.
Gmicky Ministeck.png
Gmicky Ministeck.png [ 101.06 KiB | Viewed 1440 times ]
Top
 Post subject: Re: Online Ministeck.
PostPosted: Sat Jan 10, 2015 1:30 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Now I'm definitely liking this on Clouds. Now, if you can branch out to rectangles, it can be used as a foundation to create Legos. :)


Attachments:
my_avatar.png
my_avatar.png [ 76.14 KiB | Viewed 1432 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Online Ministeck.
PostPosted: Sat Jan 10, 2015 1:32 pm  (#34) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Now, if you can create some sliders to adjust size and such. Yes, I asketh for too mucheth. lol

I suppose I could just modify the code for adjust the size for now. ;)

Thanks again Clouds (until you are willing to share your real name, then Clouds it is). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Online Ministeck.
PostPosted: Sat Jan 10, 2015 3:28 pm  (#35) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
OK; toyed with your preset some so that I could get the outlines only to isolate the tiles (oh; made the tiles bigger too; lol), and then blended some textures and such to get this bathroom tiled result. So many possibilities for your G'MIC preset Cloud. Your code is extremely small too. Thanks a heap again. :)


Attachments:
CaptureMe.jpg
CaptureMe.jpg [ 1.24 MiB | Viewed 1422 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Online Ministeck.
PostPosted: Sat Jan 10, 2015 4:08 pm  (#36) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Just some more tweaks; you made me a monster Clouds. lol

Set the white grout to zero, and then use erode followed by dialate to get just black lines. I then used that as a mask and ran Graechan's Plastic or Glass for the tiles (overlay). Added stoney grout. :)


Attachments:
CaptureMe.jpg
CaptureMe.jpg [ 1.19 MiB | Viewed 1417 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Online Ministeck.
PostPosted: Sat Jan 10, 2015 4:33 pm  (#37) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Using Clouds code.

Image
From photo of Methuselah, 4,841 years old, ancient bristlecone pine.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Online Ministeck.
PostPosted: Sat Jan 10, 2015 4:45 pm  (#38) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Nice result Odin.

Still having some fun myself. :)

https://www.flickr.com/photos/34520999@ ... 2/sizes/o/

Image

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Online Ministeck.
PostPosted: Sat Jan 10, 2015 8:38 pm  (#39) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Excellent.
Ran the default code over this image repeatedly 4 times then the original over that with my own Rodilius options and inverted the colors.Set the top Rodilius layer to difference mode. :)

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Online Ministeck.
PostPosted: Sat Jan 10, 2015 8:50 pm  (#40) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Trying to get a good woodcarving effect with color balance after. Not bad.
Image

With the script. :)

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
Post new topic Reply to topic  [ 63 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Starting an online art gallery

3

No new posts Attachment(s) Free Online Photoshop Clone

11

No new posts Attachment(s) Online tool for generating Poincare Discs.

4



* Login  



Powered by phpBB3 © phpBB Group