Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5,911
» Latest member: kristalyn
» Forum threads: 7,362
» Forum posts: 40,086
Full Statistics
|
|
|
Animations and Layers editor |
Posted by: SeanRickard - 01-24-2024, 08:26 AM - Forum: General questions
- Replies (2)
|
 |
I'm new here, so hi.
After optimising for an animation, is there a way of exporting the list showing in the Layers Editor as a text fiile?
For Example:
----------------
img001.jpg(100ms)
img002.jpg(2000ms)
img003.jpg(200ms)
.... etc
cheers Sean.
|
|
|
Why is the Move tool moving the wrong layer? |
Posted by: Ofnuts - 01-23-2024, 08:43 AM - Forum: Tutorials and tips
- No Replies
|
 |
By default, the Move tool auto-picks the layer of the top most-non transparent pixel where you click. So, starting with such an image:
Depending on where you click the Move tool will pick a different layer:
This can be disconcerting at times because if you click at random in text, you could be clicking on a transparent spot (for instance, inside the D or O above) and so selecting a layer below (the background or the green spot), which will make the move tool move that layer and not the text layer.
So, to move text, you have to click on the characters themselves (or on any opaque part of the layer, but this is what we are naturally doing most of the time for non-text layers).
In case of dire need, you can make the Move tool act on the active layer:
But instead of checking the tool option, you can also just start the drag with a shift-click. It is usually a bad idea to set the tool permanently in the Move active layer mode, because it makes arranging several layers very cumbersome.
Finally, remember that in the Text tool, you can move the layer you are editing by Alt-Control-drag (independently of where you click).
|
|
|
Transform an image into different aspect ratios |
Posted by: SpaceMonkey - 01-18-2024, 10:11 PM - Forum: Scripting questions
- Replies (7)
|
 |
Hello,
I just started today with this quest:
1.) Read the filename and save it.
2.) Resize the image to a specific aspect ratio.
3.) Add a prefix to the filename and save it as an jpeg in a specific folder.
4.) Undo all steps and repeat steps 2. und 3. different values.
I came this far:
Code:
from gimpfu import *
# The real code.
def setAspectRatios():
# create the object of the image
image=gimp.image_list()[0]
# resizes the file to AR 2-3
pdb.gimp_image_resize(image, 5333, 8000, -345, 0)
# create the new name AR 2-3
img_name_ar_2_3 = "AR_2-3_" + image.name
# define drawable
drw = image.layers[0]
# save the image as jpeg
pdb.file_jpeg_save(image, drw, img_name_ar_2_3, img_name_ar_2_3, 0.90, 0, 1, 1, "Aspect Ratio 2-3", 3, 1, 0, 2)
register(
'set-aspect-ratios', # Unique ID,
'create different aspect ratios', # Description/title
'Add a white layer', # Help
"Author", # KJ
"Author", # Copyright KJ
"2024", # Copyright 2024
'Set Aspect Ratios', # The menu label
"RGB*", # The type of images it can work on. Use "*" for all types
# [ # List of input parameters
# (PF_IMAGE, "image", "Input image", None)
#
#],
[], # List of output parameters
setAspectRatios, # The Python code that implementsthe plugin
menu="<Image>/Layer", # Where the menu label above appears
)
main()
But I have some questions to fill the blanks:
Q1: I know now that image.name does not work properly. Is there another way besides using pdb.gimp_image_get_filename(image) and trim the complete path down to the filename to just get the name of the file I imported?
Q2: What type is "drawable" - I could not find a good explanation. Do I use this correctly?
Q3: Undo is still a miracle for me. I saw that you can create groups and that you can enable, freeze, and disable it but I dont know how to trigger a simple undo to reverse steps 2. and 3. to the back to the original image.
Thanks in advance!
|
|
|
Lost box |
Posted by: Ernst - 01-18-2024, 01:49 PM - Forum: General questions
- Replies (3)
|
 |
I lost the tool detail box. For instance, the Dodge/burn tool is active but I cannot see the size, opacity and so on sliders. How do I get it back?
|
|
|
Help with creating an animation from right to left |
Posted by: rinaldop - 01-17-2024, 03:50 PM - Forum: General questions
- Replies (4)
|
 |
Hello,
I have a strange question that I hope I can explain well. I have created 60 frames of a line image that shrinks from right to left. Here is a representation to try and show what I am doing
----->
--->
->
I did this by creating each image 7 pixels shorter and then displaying image 60 to 1 in a countdown
What I want to do now is reverse the animation like this
<------
<---
<-
The problem is that I am trying to do this in a program that is used to create graphics for PC Sensor Panels (Aida64)
Apparently it displays images left justified so the only way I can think to do this is to push the frames from right to left like this
<-----
..<---
....<-
and make the ... transparent
Is there an easier way?
Thanks
|
|
|
|