gimp

Error in conditional (cond …) script-fu

我与影子孤独终老i 提交于 2019-12-13 04:48:37
问题 I'm trying to do a script-fu and I'm using a cond statement theoretically correct, but it always gives the error "Error: ( : 1) illegal function ". This is the code: (define (script-fu-prueba edicionInteractiva) (let* ( (cond ( (equal? edicionInteractiva "Interactivo") (edicionInteractiva RUN-INTERACTIVE) ) ( (equal? edicionInteractiva "No interactivo") (edicionInteractiva RUN-NONINTERACTIVE) ) ) ) ) ) (script-fu-register "script-fu-prueba" "<Image>/Filters/PRUEBA" "Prueba" "Author"

GIMP, python-fu: How to disable “Input image” and “Input drawable”

爷,独闯天下 提交于 2019-12-13 02:39:54
问题 i am confused a little about the art of how gimp generates the gui for python plug-ins. gimp generates two, for my script, needless fields. "Input image" and "Input drawable". how can i disable them? I didn't find anything about it in the standart documetation. my register method: register( "fixPngColors", "fixPngColors", "fixPngColors", "Author", "Author", "2013", "<Image>/plug-ins/BATCH PNG Color Fix", "", [ (PF_DIRNAME, "png_input_directory", "Png directory(INPUT)", ""), (PF_DIRNAME, "png

Extracting Shapes that meet a certain criteria from an Image

梦想的初衷 提交于 2019-12-12 18:38:37
问题 Let's say I have an image that I want to extract certain shapes from. This image has a plethora of shapes, but I'm only concerned about the shapes that are filled with diagonal lines. Such an image could look like this: Since I only care about shapes that have diagonal lines in them, I'm trying to use this image to generate one that looks like this: Currently, I'm attempting to do this with convolution. I start by convolving the image with this matrix: ] Which produces an image that looks

Installing PyGIMP on Windows

泄露秘密 提交于 2019-12-12 12:04:42
问题 On the web, I can find various example on gimp scripting with python. http://www.jamesh.id.au/software/pygimp/ http://www.gimp.org/docs/python/pygimp.html We need to import the gimpfu module to get the examples to work. Where can we get the installer of PyGIMP on Windows? It seems the project is dead and the links are broken. 回答1: PyGIMP is part of GIMP (GNU Image Manipulation Program) and can only work in together with it. For Linux distributions it is often found in a different package -

Using gimp as server on windows

我们两清 提交于 2019-12-12 03:18:59
问题 Here is my problem. CONTEXT I'm building a whole system to handle images processing in my company. We are processing .psd and .cr2 file making a whole lot of differents operations (like developping .cr2 file changing exposition building image architecture with layer and so on) As we are very young (==> very small with limited budget) we do not have a computer dedicated to image processing. But we still need quite a lot of processing. So what i did is: I set up a NAS and then installed a

Gimp: start script without image

让人想犯罪 __ 提交于 2019-12-11 20:18:36
问题 Well, I'm trying to write a python plug-in for Gimp, but it wont start without first loading an image... What can I do about that? 回答1: As I commented on your other question Gimp: why can't I register this? - the problem is that you are passing the "*" value on the "image type" parameter when you are making your register call. Just drop it, and pass an empty string instead. 来源: https://stackoverflow.com/questions/12732194/gimp-start-script-without-image

Gimp: why can't I register this?

谁说胖子不能爱 提交于 2019-12-11 08:37:16
问题 I'm writing an add-on for Blender to sync it with Gimp and this script should be able to start from within Gimp, but I can't register it... Why? blender_gimp_sync.py: # -*- coding: utf-8 -*- #!/usr/bin/env python from gimpfu import * def blender_gimp_sync(): image_dir = "/home/antoni4040/Έγγραφα/Layout.png" image = gimp.pdb.gimp_file_load(image_dir, image_dir) gimp.Display(image) register( "python_fu_bgsync", "Blender-Gimp Sync", "Syncronize Gimp with Blender for texturing", "Antonis Karvelas

Android Out of memory regarding png image

我只是一个虾纸丫 提交于 2019-12-11 07:49:31
问题 I have a jpg image in my app that shows correctly. In my listview i'd like to make the image more transparent so it is easier to see the text. I changed the image to a png format and altered it's opacity in GIMP. Now that the new image is in the app drawable folder. Im getting the following error. why? 09-28 09:24:07.560: I/global(20140): call socket shutdown, tmpsocket=Socket[address=/178.250.50.40,port=80,localPort=35172] 09-28 09:24:07.570: I/global(20140): call socket shutdown, tmpsocket

Blender: segmentation, fault core dumped?

故事扮演 提交于 2019-12-11 04:31:19
问题 Here is an add-on I'm trying to create: import bpy import os import sys import subprocess import time from threading import * class Repeat(Thread): def __init__(self,delay,function,*args,**kwargs): Thread.__init__(self) self.abort = Event() self.delay = delay self.args = args self.kwargs = kwargs self.function = function def stop(self): self.abort.set() def run(self): while not self.abort.isSet(): self.function(*self.args,**self.kwargs) self.abort.wait(self.delay) class ExportToGIMP(bpy.types