It is currently Fri Jul 19, 2024 6:25 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 60 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Wed May 14, 2014 11:25 am  (#41) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
dinasset, I suggest you have a look at the blog post from Pat David, he explains it very well :

http://blog.patdavid.net/2014/05/gmic-montage.html


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Wed May 14, 2014 2:11 pm  (#42) 
Offline
GimpChat Member

Joined: Aug 30, 2013
Posts: 63
Thanks for inventing this and continuing to tweak it. :jumpclap The option to scale smaller than 0.5 (I used 0.3) makes it much easier and faster to work with large files.

I'm curious about the size and aspect ratio of the output. Is it based on the canvas size? How does it decide about edge margins? Like on this example, the result is offset to the right and the bottom margin is more narrow than the top. This is easy to adjust after the fact, but inquiring minds want to know how the filter does it. I guess I should experiment with changing the canvas size before running the filter. And I should update from 1.5.8.6 to 1.5.9 (which I thought was in beta the last time I looked -- keeping up with G'MIC is like keeping up with a kitten who gets his nose into everything!)
Image


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Thu May 15, 2014 3:48 am  (#43) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Ronounours wrote:
dinasset, I suggest you have a look at the blog post from Pat David, he explains it very well :

http://blog.patdavid.net/2014/05/gmic-montage.html


I did.
I'm still confused with this "lisp-like" sequence especially with many layers.
Could at least be possible to have a default set up according with the number of layers provided?
I say that because I tried with 10 layers and the custom layout was prepared with just 4.
Then, for me, simple-minded, it was painful to try adding some other in there...
If all were initially set up, I could just try to modify some V or put some R etc.
But, anyhow, I can survive with the non-custom layout proposed...

_________________
"Where am I ?"


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Thu May 15, 2014 4:51 pm  (#44) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Ronounours wrote:
dinasset, I suggest you have a look at the blog post from Pat David, he explains it very well :

http://blog.patdavid.net/2014/05/gmic-montage.html
Thank you for Montage!
Can you check the code output to the layers tab? It replicates whatever is currently in the Custom layout line even when using presets.
For example using 9 layers, Reset | Horizontal array | Angle: 12.
The image result is as expected.
Image
Output code to layer: Preset # + Reset code + angle.
[G'MIC] Montage : -gimp_montage 3,"V(H(0,1),H(2,V(3,4))",1,0.5,0,0,0,0,0,255,12,0,0,0
The image result does not seem to match the code output.
Also, It could be my eyes and it works fine, but isn't the reset code missing a bracket? :blind
V(H(0,1),H(2,V(3,4))

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


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Thu May 15, 2014 7:01 pm  (#45) 
Offline
GimpChat Member
User avatar

Joined: Oct 06, 2013
Posts: 143
Holy howling Hannah, what a plugin! Wish I'd had it a few times in the past. Glad to have it now.

_________________
Image


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Fri May 16, 2014 7:48 am  (#46) 
Offline
New Member
User avatar

Joined: Nov 01, 2013
Posts: 4
I love these tutorials, they are a great help, especially to a novice like me. Especially like this montage filter and the packed sprites tutorial. Could you do a similar one on the Ascii Art filter please?

_________________
Image


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Fri May 16, 2014 8:43 am  (#47) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Odin : which version of G'MIC do you use ? Is it the latest. You're the first that report this kind of issue :)
The brackets in the Custom Layout code are in fact useless and can be omitted :)
I've put them to make the explanations easier and things more clear for the video tutorial.

This is what I get with 9 layers and Default Custom Layout code.

Attachment:
montage9.jpg
montage9.jpg [ 152.28 KiB | Viewed 2495 times ]


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Fri May 16, 2014 9:16 am  (#48) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
David,
taking your example: could it be possible to have a Default Custom Layout code which considers all 9 layers?

_________________
"Where am I ?"


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Fri May 16, 2014 11:14 am  (#49) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Yes of course, with all 9 layers referenced (I use a simple 3x3 array here as the custom layout) :

Attachment:
gmic_montage9_2.png
gmic_montage9_2.png [ 200.41 KiB | Viewed 2483 times ]


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Fri May 16, 2014 12:14 pm  (#50) 
Offline
GimpChat Member
User avatar

Joined: Mar 10, 2014
Posts: 845
playing with this nice filter!

Image


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Fri May 16, 2014 12:23 pm  (#51) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks, David.

_________________
"Where am I ?"


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Fri May 16, 2014 2:19 pm  (#52) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Ronounours wrote:
Odin : which version of G'MIC do you use ? Is it the latest. You're the first that report this kind of issue :)
The brackets in the Custom Layout code are in fact useless and can be omitted :)
I've put them to make the explanations easier and things more clear for the video tutorial...
G'MIC 1.5.9.0, Gimp 2.8.10, Linux.
I was referring to (after you use Montage), the code output to Gimp Layers dialog does not include the preset formula.
For example, with Custom layout empty using Horizontal array preset.
[G'MIC] Montage : -gimp_montage 3,"",1,0.5,0,0,0,0,0,255,0,0,0,0
I was expecting the preset formula rather than empty quotes. Only custom code or (when using presets) whatever is still in Custom layout (even a random string) is sent to the Layers dialog.

Also, the 'example code' in Custom layout looks to me like it is missing a bracket and might confuse people about code structure.
Current example code: V(H(0,1),H(2,V(3,4))
with missing bracket: V(H(0,1),H(2,V(3,4)))

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


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Fri May 16, 2014 3:32 pm  (#53) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
I see. The layer name contains indeed the exact G'MIC command to call to get exactly the same result as the filter you've applied.
If you choose a montage type that is different than "Custom Layout", then yes, you can put anything you want in the string (which still remains a parameter of the command,
but which is in fact ignored, as the first parameter tells to do it).
Also, I will add the missing bracket in the next filter updates, thanks for noticing it.


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Sat May 17, 2014 1:51 am  (#54) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
dinasset wrote:
Thanks, David.


OK.
After the example provided by David with the 9 layers, I guess I have understood a little bit more.
So let's put here what I understood starting from this "custom layout":
V(V(H(0,H(1,2)),H(3,H(4,5))),H(6,H(7,8))))
a) each part of the layout command can ONLY mount TWO layers
look at the line with colour underlining this fact
V(V(H(0,H(1,2)),H(3,H(4,5))),H(6,H(7,8))))
b) if I want to mount 3 layers I have to change one of the two terms (in the example the second one) with a sub-command, for instance: if I want to mount horizontally the first 3 layers I have to indicate this by the string
H(0,H(1,2))
c) I may prepare a similar command for the others two triplets of layers:
H(3,H(4,5))
H(6,H(7,8))
d) now I have to think about the way I want to combine those 3 triplets
well, using the rule a), I have first of all to combine ONLY TWO of them;
assuming I want to combine them vertically, I have to prepare this command:
V(H(0,H(1,2)),H(3,H(4,5))
e) then I have to write an "embracing" command which mounts the result of the
previous command (d) with the third and last triplet, et voilà:
V(V(H(0,H(1,2)),H(3,H(4,5))),H(6,H(7,8))))

I hope this could be of some help for someone else, simple-minded like me.

_________________
"Where am I ?"


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Mon May 19, 2014 11:35 am  (#55) 
Offline
GimpChat Member
User avatar

Joined: Mar 10, 2014
Posts: 845
using montage filter again!

Image


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Mon May 19, 2014 11:51 am  (#56) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
lovely

_________________
Image


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Mon May 19, 2014 12:49 pm  (#57) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
dinasset wrote:
OK.
After the example provided by David with the 9 layers, I guess I have understood a little bit more.
So let's put here what I understood starting from this "custom layout":
V(V(H(0,H(1,2)),H(3,H(4,5))),H(6,H(7,8))))
a) each part of the layout command can ONLY mount TWO layers
look at the line with colour underlining this fact
V(V(H(0,H(1,2)),H(3,H(4,5))),H(6,H(7,8))))
b) if I want to mount 3 layers I have to change one of the two terms (in the example the second one) with a sub-command, for instance: if I want to mount horizontally the first 3 layers I have to indicate this by the string
H(0,H(1,2))
c) I may prepare a similar command for the others two triplets of layers:
H(3,H(4,5))
H(6,H(7,8))
d) now I have to think about the way I want to combine those 3 triplets
well, using the rule a), I have first of all to combine ONLY TWO of them;
assuming I want to combine them vertically, I have to prepare this command:
V(H(0,H(1,2)),H(3,H(4,5))
e) then I have to write an "embracing" command which mounts the result of the
previous command (d) with the third and last triplet, et voilà:
V(V(H(0,H(1,2)),H(3,H(4,5))),H(6,H(7,8))))

I hope this could be of some help for someone else, simple-minded like me.

I believe you started with an incorrect formula, (one too many brackets at the end). It seems to works in G'MIC but it's not properly formed.
In David's screen shot the cursor at the end might have looked like another bracket.
Image

From screen
V(V(H(0,H(1,2)),H(3,H(4,5))),H(6,H(7,8)))

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


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Mon May 19, 2014 2:36 pm  (#58) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks Odinbc, you are right.
The last right parenthesis has not to be there, as you said: an eye mistake.

_________________
"Where am I ?"


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Wed May 28, 2014 7:11 am  (#59) 
Offline
GimpChat Member

Joined: Jan 20, 2014
Posts: 66
Hi Ro, When I tried to layout 3 rows and within each row, there can be one or more photos. The row height doesn't seems to related to photo size. The smaller photo takes up half the output height while other larger photos squeezed into the rest. Scale or aligned doesn't have any impact. Is there a way to control the row height as a percentage of the output?


Top
 Post subject: Re: New G'MIC filter : 'Arrays & tiles / Montage'
PostPosted: Thu Oct 02, 2014 7:14 am  (#60) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7755
Location: On the other side of this screen
This filter is so handy when a few pictures alike are to be posted.
I had a play today (again) with a few G'MIC filters

Image

(-all sizes https://www.flickr.com/photos/115367823 ... /sizes/o/-)

_________________


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Custom layout of Montage filter is not reflected

3

No new posts Attachment(s) G'MIC Montage

1

No new posts GMIC Montage - how to prevent resizing

2

No new posts Attachment(s) Patterns - Glassy Islamic Tiles

6

No new posts Attachment(s) Small Tiles - Big Preview for Gimp-2.10.20

0



* Login  



Powered by phpBB3 © phpBB Group