GIMP Plugin Registry - Comments for "Batch colormap change help"http://registry.gimp.org/node/26517
Comments for "Batch colormap change help"enStill isn't working for mehttp://registry.gimp.org/comment/14758#comment-14758
<a id="comment-14758"></a>
<p><em>In reply to <a href="http://registry.gimp.org/comment/14753#comment-14753">Works for me</a></em></p>
<div class="field field-name-comment-body field-type-text-long field-label-hidden"><div class="field-items"><div class="field-item even"><p>I've tried using both the original and those functions, they have the exact same arguments, but consistently I end up with the same error and nothing else.</p>
<p>I could have done this manually long ago.</p>
</div></div></div><ul class="links inline"><li class="comment_forbidden first last"><span><a href="/user/login?destination=comment/reply/26517%23comment-form">Log in</a> or <a href="/user/register?destination=comment/reply/26517%23comment-form">register</a> to post comments</span></li>
</ul>Fri, 22 Jun 2012 00:14:13 +0000Nullcomment 14758 at http://registry.gimp.orgWorks for mehttp://registry.gimp.org/comment/14753#comment-14753
<a id="comment-14753"></a>
<p><em>In reply to <a href="http://registry.gimp.org/comment/14748#comment-14748">Thanks</a></em></p>
<div class="field field-name-comment-body field-type-text-long field-label-hidden"><div class="field-items"><div class="field-item even"><p>I find it works for me with the command line:</p>
<p>"C:\Program Files\GIMP-2.8\bin\gimp-2.8.exe" -i -f --verbose -b "(batch-color-map \"*.jpg\" \"Ega\")" -b "(gimp-quit 0)"</p>
<p>However, I note that there is a already a script called script-fu-set-cmap, so you may have a name collision, and GIMP is using the other script instead of yours. The other script has an additional parameter and if the remainder of your script calls it, you'll potentially be passing numbers into string parameters and visa-versa.</p>
<p>I recommend changing all the references to script-fu-set-cmap in your script, to, say script-fu-set-cmap-null or some other unique name. Similarly change script-fu-make-cmap-array into something more unique.</p>
</div></div></div><ul class="links inline"><li class="comment_forbidden first last"><span><a href="/user/login?destination=comment/reply/26517%23comment-form">Log in</a> or <a href="/user/register?destination=comment/reply/26517%23comment-form">register</a> to post comments</span></li>
</ul>Thu, 21 Jun 2012 08:35:31 +0000paynekjcomment 14753 at http://registry.gimp.orgThankshttp://registry.gimp.org/comment/14748#comment-14748
<a id="comment-14748"></a>
<p><em>In reply to <a href="http://registry.gimp.org/comment/14741#comment-14741">Batch command line wrong</a></em></p>
<div class="field field-name-comment-body field-type-text-long field-label-hidden"><div class="field-items"><div class="field-item even"><p>Thank you for that; I can't believe I missed that. But I have another problem, when I'm passing the string of the palette name to the batch file it tells me "Invalid type for argument 1 to gimp-palette-get-info". If I pass the same string to the gimp-palette-get-info it works just fine. I have absolutely no idea how to debug this because I didn't write it (and don't really need to spend time learning scheme in addition to other things right now).</p>
</div></div></div><ul class="links inline"><li class="comment_forbidden first last"><span><a href="/user/login?destination=comment/reply/26517%23comment-form">Log in</a> or <a href="/user/register?destination=comment/reply/26517%23comment-form">register</a> to post comments</span></li>
</ul>Wed, 20 Jun 2012 21:31:03 +0000Nullcomment 14748 at http://registry.gimp.orgBatch command line wronghttp://registry.gimp.org/comment/14741#comment-14741
<a id="comment-14741"></a>
<p><em>In reply to <a href="http://registry.gimp.org/node/26517">Batch colormap change help</a></em></p>
<div class="field field-name-comment-body field-type-text-long field-label-hidden"><div class="field-items"><div class="field-item even"><p>You have your batch command line wrong. What the official batch tutorial fails to mention is that single quotes ' don't work the same way for DOS commands. You need to use double quotes and escape the double quotes inside the command:</p>
<p>"C:\Program Files\GIMP 2\bin\gimp-2.8.exe" -i -b "(batch-color-map \"*.png\" \"Palette\")" -b "(gimp-quit 0)"</p>
</div></div></div><ul class="links inline"><li class="comment_forbidden first last"><span><a href="/user/login?destination=comment/reply/26517%23comment-form">Log in</a> or <a href="/user/register?destination=comment/reply/26517%23comment-form">register</a> to post comments</span></li>
</ul>Wed, 20 Jun 2012 05:54:13 +0000paynekjcomment 14741 at http://registry.gimp.org