Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5,027
» Latest member: ronijaat
» Forum threads: 7,101
» Forum posts: 38,851
Full Statistics
|
Latest Threads |
Has anyone noticed this?
Forum: Scripting questions
Last Post: teapot
10 hours ago
» Replies: 1
» Views: 137
|
Affordable Tools to Color...
Forum: General questions
Last Post: rich2005
Yesterday, 07:28 PM
» Replies: 2
» Views: 108
|
written text to LASER
Forum: General questions
Last Post: rich2005
Yesterday, 04:12 PM
» Replies: 1
» Views: 83
|
Grid Pencil Misallignment
Forum: General questions
Last Post: Abdullah2025
01-13-2025, 09:45 PM
» Replies: 7
» Views: 324
|
right dock window gets wi...
Forum: General questions
Last Post: rich2005
01-13-2025, 07:51 PM
» Replies: 7
» Views: 196
|
Change color of edited te...
Forum: General questions
Last Post: Ofnuts
01-13-2025, 09:41 AM
» Replies: 3
» Views: 346
|
GEGL Negative Darkroom pr...
Forum: Extending the GIMP
Last Post: denzjos
01-13-2025, 09:34 AM
» Replies: 1
» Views: 129
|
Gimp 3.x scanner xsane pl...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
01-12-2025, 09:54 AM
» Replies: 1
» Views: 180
|
My first python plugin re...
Forum: Scripting questions
Last Post: origamifreak2
01-11-2025, 10:08 PM
» Replies: 16
» Views: 1,066
|
Installing new patches? (...
Forum: General questions
Last Post: Joe
01-11-2025, 06:02 PM
» Replies: 5
» Views: 314
|
|
|
Alter UV Map? |
Posted by: Some Yahoo - 03-16-2017, 03:34 AM - Forum: General questions
- Replies (1)
|
|
I have an image premade and I want to UV map it onto my object. However, there seems to be no way to "unfold" an object onto an existing image. it always creates that ABC squares map. I need to see the correct image in the UV mapperizer so I can correctly lay out my UV coordinates.
HOW?
|
|
|
Bevel Reflect Logo crops image |
Posted by: Blighty - 03-15-2017, 11:19 AM - Forum: General questions
- Replies (5)
|
|
I have an image with about 300 layers. Layers are different widths. Lets say that the image (canvas) is 1000 pixels wide.
Layer no. 50 is 500 pixels wide. I run BRL on layer no. 50. The image gets cropped to 500 pixels wide.
The only workaround I have found so far is to copy layer no. 50 to a new image, run BRL on that, and then copy this back to the original image and anchor it. Clumsy and time consuming.
Any suggestions for a fix or an easy workaround?
|
|
|
Scripts, plugins, etc. |
Posted by: eingram25 - 03-15-2017, 04:01 AM - Forum: Installation and usage
- Replies (4)
|
|
Hi. I'm using Gimp 2.8.20. Running under Windows 10.
I just wondered if anyone has compiled a list of all the plugins and/or filters.
I might want to go through and try to understand how to use some of them.
I seem to learn best by trial and ERROR. (emphasis mine, of course)
|
|
|
New Here |
Posted by: Danielsan - 03-14-2017, 12:17 AM - Forum: Gimp-Forum.net
- Replies (2)
|
|
Hi All,
I didn't know the older forum was closed so after reading the Pat David's blog I ran here to register myself, however I didn't get this part of your terms:
Quote:The admins do their best to keep this forum fit for all ages, but, due to their European culture, they can come across as rather laid-back on some subjects and tight-fisted on others
I am Italian... So what does it mean?
Probably in the intention of the person who wrote this sentence was to use an ironic tone but honestly it seems quite discriminatory in several ways.
I suggest you to review the tone of this sentence because it is totally against yours final statement:
Quote:We try to manage this forum as sensible adults, we expect members to be the same.
Regards,
D.
|
|
|
Debugging python-fu scripts in Windows |
Posted by: Ofnuts - 03-13-2017, 10:42 AM - Forum: Tutorials and tips
- Replies (1)
|
|
Debugging python-fu scripts
As Brian Kernighan wrote, "The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.".
On Linux (and likely OSX) things are easy: if you start Gimp from a terminal, all the output from print statements in Python plugins will be displayed in the terminal.
But on Windows, the output of plain print statements cannot be seen, so you have two options:
Using gimp_message()
This is a simple method which is OK to diagnose small and local problems, but it is better used on code which is known to be mostly working.
- start the Error console dialog
- use gimp_message() instead of print (if the Error console dialog is not up, Gimp stops with a dialog for each use of gimp_message())
Running your script in the python-fu console
This method is a bit more complex, but all the output is visible, even from parts of Python that you don't control (error messages, etc...)
We just have to overcome a few hurdles, namely:
- by default Python doesn't look in the directory where your code is
- the registration code doesn't work in the python-fu console, if fact it makes it crash.
- taking the new version in account with minimal effort after editing the code
So, assuming you are working on plugin.py, with an entry point (the function you point to in the register() call) named execPlugin that takes an image and a layer, and that the file is in the plug-ins directory of your profile:
- while testing the function, comment out the register() and main() call in your python
- make sure your file name is a valid python identifier (no dashes in the name, for instance)
- start the python-fu console, make sure you have one single image loaded and enter:
Code:
import sys;
# extend the python path to include the plug-ins directory
sys.path=[gimp.directory+'/plug-ins']+sys.path
#import the plugin
import plugin
Code:
# retrieve the image (if you have several images, it will be a bit more complicated)
# here we bluntly retrieve the first image in the list of loaded images
image=gimp.image_list()[0]
# Call the function: note that the function name is prefixed with the module name
plugin.execPlugin(image,image.active_layer)
- if you edit the file, to reload the new version of the code:
- if your plugin function takes more parameters you have to provide them "manually". In most cases they will just be strings (text, but also file names, fonts, brushes,...) or numbers. The semi-difficult cases are layers and other images, because the parameter is an object, so you have to retrieve it with python code (obtain the other image in gimp.image_list(), for instance, or a drawable from image.layers and checking its name).
- to start afresh, just close and reopen the python console
- when done, don't forget to:
- uncomment the registration code
- remove the print statements... in Windows they can freeze your script if the total length of output is bigger than 4KB (because there is nothing to read it)
Routing python outputs to file
(this method inspired by a post by SeldomNeedy on the Gimp user mailing list)
This is a rather simple method, which is best used with an editor clever enough to reload the file when it notices changes. With this method, everything Python would write on the console (print statements, error messages... ) goes to a file, that you can check with a text editor. At the beginning of the file, do:
Code:
import sys
sys.stderr = open('C:/temp/python-fu-output.txt','a')
sys.stdout=sys.stderr # So that they both go to the same file
Other locations are possible:
Code:
sys.stderr = open(gimp.directory+'/../My Documents/python-fu-output.txt','a')
(contrary to popular belief, forward slashes are usable as path separators on Windows, only the command prompt parser doesn't like them).
When you are done with debugging, you can disable all the tracing by simply replacing the initial file opening.
Code:
Code:
import os
sys.stderr = open(os.path.devnull,'a')
os.path.devnull is the right "bit bucket" for the platform the code is running on, so this makes your plugin compatible with Windows, Linux, and OSX.
|
|
|
Cropping images - pasting to new layer - layer boundary size |
Posted by: peterpil19 - 03-13-2017, 05:48 AM - Forum: General questions
- Replies (5)
|
|
Hi,
First post on this forum.
I enjoy using GIMP.
I have a question about cropping and pasting as new layer.
When cropping a select part of an image using the fuzzy select tool and pasting it into a new layer, the layer boundary exceeds the cropped image size - there is typically extra vertical space around the top and bottom of the cropped image.
This makes resizing particularly difficult because I cannot compare the actual size of the cropped image to that of other layers pasted into the image because of the extra space.
I can confirm that nothing else has been selected below the cropped image.
I use GIMP to crop photos of coins.
So I crop and paste side A of the coin.
I then crop and paste side B as a new layer. However GIMP adds extra space around the image which makes resizing side B really hard. It would otherwise be as simple as resizing the layer/image of side B to match side A.
Any help would be appreciated as have not been able to work out why this is happening.
Peter
|
|
|
Hello, found you |
Posted by: carl7 - 03-12-2017, 09:03 PM - Forum: General questions
- Replies (5)
|
|
I used to be a member (knotty) of the 'OLD' forum that went under. Wondered what happened! anyway a question. I'm inbetween Internet connections. So wondering if I can download the latest GIMP at a public computer (library) onto a flashdrive and then install it to my home computer?
Thanks! Carl
|
|
|
How to make playback image larger |
Posted by: Gaunt - 03-12-2017, 05:38 PM - Forum: General questions
- Replies (1)
|
|
Hi! I'm a gimp newbie so sorry if this was already answered. I've been trying to animate pixel art on a 64 x 64 pixel canvas. My issue is that when I try and playback the animation it is really small. Is there a way of making playback larger or is the only solution to draw with more pixels?
|
|
|
|