<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Batch image manipulation using Python and GIMP	</title>
	<atom:link href="https://ntcore.com/batch-image-manipulation-using-python-and-gimp/feed/" rel="self" type="application/rss+xml" />
	<link>https://ntcore.com/batch-image-manipulation-using-python-and-gimp/</link>
	<description></description>
	<lastBuildDate>Mon, 23 Mar 2020 11:48:49 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>
		By: Erik Pistelli		</title>
		<link>https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-353</link>

		<dc:creator><![CDATA[Erik Pistelli]]></dc:creator>
		<pubDate>Mon, 23 Mar 2020 11:48:49 +0000</pubDate>
		<guid isPermaLink="false">https://ntcore.com/?p=509#comment-353</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-352&quot;&gt;george&lt;/a&gt;.

Hey George,
it expects a float and not an integer. Just write the following instead:
img.layers[0].opacity=50.0
Don&#039;t forget the .0, otherwise it will interpret it as an int.
Kind regards
Erik]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-352">george</a>.</p>
<p>Hey George,<br />
it expects a float and not an integer. Just write the following instead:<br />
img.layers[0].opacity=50.0<br />
Don&#8217;t forget the .0, otherwise it will interpret it as an int.<br />
Kind regards<br />
Erik</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: george		</title>
		<link>https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-352</link>

		<dc:creator><![CDATA[george]]></dc:creator>
		<pubDate>Sun, 22 Mar 2020 18:30:13 +0000</pubDate>
		<guid isPermaLink="false">https://ntcore.com/?p=509#comment-352</guid>

					<description><![CDATA[tried it, it did not work? what did i do wrong?
Thanks&#039;
GIMP 2.8.4 Python Console
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
&#062;&#062;&#062; img=gimp.image_list()[0]
&#062;&#062;&#062; img.layers[0].opacity=50
Traceback (most recent call last):
  File &quot;&quot;, line 1, in 
TypeError: type mismatch]]></description>
			<content:encoded><![CDATA[<p>tried it, it did not work? what did i do wrong?<br />
Thanks&#8217;<br />
GIMP 2.8.4 Python Console<br />
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]<br />
&gt;&gt;&gt; img=gimp.image_list()[0]<br />
&gt;&gt;&gt; img.layers[0].opacity=50<br />
Traceback (most recent call last):<br />
  File &#8220;&#8221;, line 1, in<br />
TypeError: type mismatch</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Trish Carlson		</title>
		<link>https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-351</link>

		<dc:creator><![CDATA[Trish Carlson]]></dc:creator>
		<pubDate>Wed, 30 Jan 2019 00:01:55 +0000</pubDate>
		<guid isPermaLink="false">https://ntcore.com/?p=509#comment-351</guid>

					<description><![CDATA[Since I went to Linux, code is so visible, Python looks OK since I should get a language started. That comment about Lisp made me laugh, saw some elsewhere. Love the Gimp, hmm batches.]]></description>
			<content:encoded><![CDATA[<p>Since I went to Linux, code is so visible, Python looks OK since I should get a language started. That comment about Lisp made me laugh, saw some elsewhere. Love the Gimp, hmm batches.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: dpistelli		</title>
		<link>https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-350</link>

		<dc:creator><![CDATA[dpistelli]]></dc:creator>
		<pubDate>Tue, 11 Sep 2018 20:37:53 +0000</pubDate>
		<guid isPermaLink="false">https://ntcore.com/?p=509#comment-350</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-349&quot;&gt;G&lt;/a&gt;.

Hello G, glad it was useful. Many thanks for the information!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-349">G</a>.</p>
<p>Hello G, glad it was useful. Many thanks for the information!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: G		</title>
		<link>https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-349</link>

		<dc:creator><![CDATA[G]]></dc:creator>
		<pubDate>Tue, 11 Sep 2018 12:43:41 +0000</pubDate>
		<guid isPermaLink="false">https://ntcore.com/?p=509#comment-349</guid>

					<description><![CDATA[Thanks, that&#039;s great - helped to fill in some handy pieces.
To add/retain transparency you add an alpha channel to a layer:
	pdb.gimp_layer_add_alpha(timage.layers[0])
Otherwise, transparent pixels are filled with black or the background color.]]></description>
			<content:encoded><![CDATA[<p>Thanks, that&#8217;s great &#8211; helped to fill in some handy pieces.<br />
To add/retain transparency you add an alpha channel to a layer:<br />
	pdb.gimp_layer_add_alpha(timage.layers[0])<br />
Otherwise, transparent pixels are filled with black or the background color.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: dpistelli		</title>
		<link>https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-348</link>

		<dc:creator><![CDATA[dpistelli]]></dc:creator>
		<pubDate>Fri, 31 Aug 2018 20:32:11 +0000</pubDate>
		<guid isPermaLink="false">https://ntcore.com/?p=509#comment-348</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-347&quot;&gt;tonyweb&lt;/a&gt;.

Thank you tony, it&#039;s a small thing, but, as you said, it might be useful someday :)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-347">tonyweb</a>.</p>
<p>Thank you tony, it&#8217;s a small thing, but, as you said, it might be useful someday 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: tonyweb		</title>
		<link>https://ntcore.com/batch-image-manipulation-using-python-and-gimp/#comment-347</link>

		<dc:creator><![CDATA[tonyweb]]></dc:creator>
		<pubDate>Fri, 31 Aug 2018 12:18:23 +0000</pubDate>
		<guid isPermaLink="false">https://ntcore.com/?p=509#comment-347</guid>

					<description><![CDATA[Thank you Daniel for sharing your findings :)

I know almost nothing about python but, yes, it&#039;s used pretty everywhere ... so I should start taking a look at it seriously. :)

Thanks for the skeleton code ... it might be useful whenever I had to use GIMP ;)

Best Regards,
Tony]]></description>
			<content:encoded><![CDATA[<p>Thank you Daniel for sharing your findings 🙂</p>
<p>I know almost nothing about python but, yes, it&#8217;s used pretty everywhere &#8230; so I should start taking a look at it seriously. 🙂</p>
<p>Thanks for the skeleton code &#8230; it might be useful whenever I had to use GIMP 😉</p>
<p>Best Regards,<br />
Tony</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
