It is currently Sat Aug 15, 2026 11:33 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: blend_seamless by command line
PostPosted: Thu Feb 25, 2016 5:48 am  (#1) 
Offline
New Member

Joined: Feb 25, 2016
Posts: 3
Hi all

Could you help me to merge properly a little pattern image into a bigger one using blend_seamless option of command line at custom position?

With this basic command-line, I cannot select the position: pattern is copied at the center of bigger one.
$> gmic -i road.jpg -i car.png --blend_seamless[0,1] 0,10%,4% -display

Except position, it works well!

I tried this (put pattern into big empty image before seamless blending), but it fails:
$> gmic -i road.jpg -i 800,600,1,4 -i car.png --blend[1,2] alpha --blend_seamless[0,3] 0,10%,4%

It seems the seamless blending can not operate on largely empty image pattern.

road.jpg and car.png are attached.

Thanks for help!


Attachments:
car.png
car.png [ 16.57 KiB | Viewed 4658 times ]
road.jpg
road.jpg [ 84.27 KiB | Viewed 4658 times ]
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: blend_seamless by command line
PostPosted: Thu Feb 25, 2016 8:04 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8457
Location: On the other side of your screen
Never tried custom set - up for this but it actually works. Seam-lessy blending into the background.
I will try and show you what I get
Opening both layers then G"MIC, scrolling down to layer's, blend seamless, making sure input layers is set to all. This is what I got
Image

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.4 and GMIC-Qt 4.0.2 OS :- Windows 10 Home 64


Top
 Post subject: Re: blend_seamless by command line
PostPosted: Thu Feb 25, 2016 9:23 am  (#3) 
Offline
New Member

Joined: Feb 25, 2016
Posts: 3
Yes, I get the same result with the GMIC plugin for GIMP, but I really need to use the command line. I would like to blend the same pattern in a large set of images, by shell script.
I'm pretty sure I missed a command option!


Top
 Post subject: Re: blend_seamless by command line
PostPosted: Thu Feb 25, 2016 9:33 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
One way to do this, is to resize your foreground sprite first, then shift it with the desired coordinates you want for the location :
$ gmic road.jpg car.png -r. [0],[0],1,4,0 -shift. 150,200 -blend_seamless

Here, replace 150,200 by the coordinates you want.


Top
 Post subject: Re: blend_seamless by command line
PostPosted: Thu Feb 25, 2016 9:50 am  (#5) 
Offline
New Member

Joined: Feb 25, 2016
Posts: 3
Nice, this is exactly what I want!

$> gmic -i road.jpg -i car.png -r[1] [0],[0],1,4,0 -shift[1] 200,200 --blend_seamless[0,1] 0,10%,4% -display


Thanks!


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group