[Gimp-user] install problem

2002-06-18 Thread ShelbyMustang427

i don't know if i can email this addres but it's the only addres i saw that 
could be useful on the gimp home page, but i downloaded gimp through cnet.com 
and when i try and open the 10.7 meg file it wants to associate the file to a 
program ( or in other words a program to open it with). is this a result of 
an incomplete file, or maybe a mac version, or could the problem just be that 
i need to open it with an install prgram? Thank you for you time.

Gratefully,
Gollum
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



Re: [Gimp-user] rotate image script-fu

2002-06-18 Thread Joel

> would you can send me the script? I am very interested about using GIMP to
> make/process animations, so a script that gets all the imagens in a
> directory, and apply some kind of transformation in them would be very
> useful for me. And I am still a Script-fu beginner :)
>
> thank you,
> andrei

Now *that* is a noble cause. ;-)

I'm not really all that crazy about Scheme (Gimp's built-in scripting 
language), so I don't write with it. I really, really like Python, though, 
and there are Python bindings for the Gimp. You can download them at  
http://www.daa.com.au/~james/pygimp/

Use the documentation there, plus the PDB browser, to figure out everything 
you can do. In the meantime, here's a quick little script I whipped up to 
rotate a series of images in a directory. To avoid writing something that 
would be trivial to do with "convert," I've put in a little twist... The 
first image is slightly rotated, the second a little bit more, and so on, 
until the last image, which goes to the user-specified rotation.

Enjoy!

--Joel


rotate.py -

#!/usr/bin/env python
#
# rotate.py
#
# animate rotating all images in a directory; The first image gets rotated
# very little, progressing to the final image, which gets rotated by 
# a user-specified degree.
#
# Copyright 2002, Joel Hatch
# Licensed under the GNU GPL
# 18 June 2002

from gimpfu import *
import math, os, traceback

Error = "Error"

def rotateImages(directory, degrees):
   "Rotate images in a directory"

   # Make sure the directory is valid
   path = os.path.normpath(directory)
   if not os.path.isdir(path):
  raise Error, "Directory %s not found" % path

   # Get and sort a list of files in the directory
   oldDir = os.getcwd()
   os.chdir(path)
   files = os.listdir(path)
   files.sort()

   # figure out how far to rotate each image; we are going to get a
   # group of images, and rotate each image further until the last image
   # is the full rotation. (convert to radians)
   standardRotation = (float(degrees) * math.pi) / (len(files) * 180)
   currentRotation  = 0
   
   for file in files:
  try:
 # load the image
 graphicFile = pdb.gimp_file_load(file, file) 

 # add an alpha channnel to the bottom layer, so the background 
 # will be transparent
 pdb.gimp_layer_add_alpha(graphicFile.layers[0])

 # calculate how big the containing box will need to be
 # (our picture is a rectangle, inside a circle (the rotation), 
 # inside a square (the containing box size). The width and
 # height of the containing box are the same as the diameter of
 # the circle, which can be found from the rectangle with d^2=w^2+h^2
 size = math.sqrt(graphicFile.width**2 + graphicFile.height**2)

 # calculate the top left position of our image inside the
 # containing box
 top  = (size - graphicFile.height)/2
 left = (size - graphicFile.width)/2

 # resize the image to the containing box
 pdb.gimp_image_resize(graphicFile, size, size, left, top)

 # rotate every layer in the image
 currentRotation = currentRotation - standardRotation
 for layer in graphicFile.layers:
pdb.gimp_rotate(layer, FALSE, currentRotation)
left, top = layer.offsets
pdb.gimp_layer_resize(layer, size, size, left, top)

 # save and close the file
 if len(graphicFile.layers) > 1:
finalLayer = pdb.gimp_image_merge_visible_layers(graphicFile, 
CLIP_TO_IMAGE)
 else:
finalLayer = graphicFile.layers[0]
 finalName = "n_%s.png" % os.path.splitext(file)[0]
 pdb.file_png_save(graphicFile, finalLayer, finalName, finalName, \
FALSE, 6, TRUE, TRUE, TRUE, TRUE, TRUE)
 pdb.gimp_image_delete(graphicFile)
# If you want to display the image, instead of closing it, comment the
# above line, and un-comment the line below
# pdb.gimp_display_new(graphicFile)

  except:
 traceback.print_exc()
  
   # change back to the default directory
   os.chdir(oldDir)



register(
   "python_fu_rotate",
   "Rotate all images in a directory",
   "",
   "Joel Hatch",
   "",
   "16 June 2002",
   "/Xtns/Python-Fu/Animation/Rotate",
   "RGB*, GRAY*",
   [  
  (PF_STRING, "Directory",  "Directory containing files to rotate", ""),
  (PF_INT,"degrees","Degrees to rotate the final image", "")
   ],
   [],
   rotateImages)


main()

--

___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



Re: [Gimp-user] Prepress preparation

2002-06-18 Thread Joel

My $0.02:

As of right now, your best option is to have the printer handle the 
conversion. Give them a nice RGB TIFF; they shouldn't have any problem 
converting it to CMYK. Your resulting image won't look quite as good coming 
from RGB as it would from something that started as CMYK, because the color 
spaces are a bit different, but generally it's not *that* big a deal.

The printer will probably charge a bit to do the conversion, but if they do 
it, it'll definately work with their production equipment. It's likely to be 
the simplest, most cost-effective way of getting the project done.

(That said, I have not created any book covers in the Gimp, but I *have* put 
together a few with Quark and Photoshop. I find that Gimp is *wonderful* for 
on-line stuff, and for automatic processing, but Photoshop is still needed 
for CMYK (and Pantone, and Hexachrome) support. Hopefully, Gimp 2.0 will fix 
some of this.)

--Joel

> Now, I want to make a book cover, four color. I know that cmyk is handled
> only marginally in Gimp. I don't have and don't particularly want to have
> Adobe Distiller (the Unix price is ridiculous.) So what is the best
> strategy for me to follow, assuming that my printer will need to pick up
> the prepress preparation burden at some point? Should I attempt to prepare
> separations? Should I convert my Gimp-made cover to pdf via Ghostscript?
>
> And has anyone actually done a book cover in four colors using Gimp?
>
> All replies appreciated.
>
> John Culleton

___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] Prepress preparation

2002-06-18 Thread John Culleton

First, thanks to all who answered my border question. I am keeping all those
messages for future reference.

Now, I want to make a book cover, four color. I know that cmyk is handled only
marginally in Gimp. I don't have and don't particularly want to have
Adobe Distiller (the Unix price is ridiculous.) So what is the best strategy 
for me to follow, assuming that my printer will need to pick up the prepress 
preparation burden at some point? Should I attempt to prepare separations?
Should I convert my Gimp-made cover to pdf via Ghostscript?

And has anyone actually done a book cover in four colors using Gimp?

All replies appreciated.

John Culleton 


__
D O T E A S Y - "Join the web hosting revolution!"
 http://www.doteasy.com
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] Re: Using text and anchor layer

2002-06-18 Thread Guillermo S. Romero / Familia Romero

[EMAIL PROTECTED] (2002-06-18 at 1442.30 +0200):
> I have yet to see the "anchor layer" menu item activated. It seems
> always to be greyed out. Is this normal?

That is for floating layer, an old thing... I think it will disappear
in the future. Basically every time someone sees "floating layer" in
the dialog he should hit "new layer" button and keep working.

> When I use the standard text tool and click on my background, a font
> dialog pops up, and I can select all the desired font
> characteristics. None of these are reflected in the "preview"
> window, into which I've typed my text. Then when I click "OK",
> absolutely nothing at all happens, except that the dialog
> disappears. No text appears on the background. I'm fairly sure I'm
> not creating text in the background colour, too. So, is the standard
> text tool just unusably broken, or am I missing some vital step or
> doing something else really dumb?

Dunno, maybe out of screen or weird colour. You should forget about it
anyway, use GDynText or the FreeType one.

> So, I try the dynamic text tool. Much better, at least I can get
> text to appear, and the preview *does* show me all the selected
> characteristics. Placement is always at top left of the background
> layer, on a separate GDynText layer. To position the text I have to
> then position the text layer over the background. Not much of a
> problem. However, I can't anchor this layer. "Merge down" works, but
> then of course the text becomes one with everything and is no longer
> separately manipulable.

You can move it, and you can edit that layer and it will keep the new
position. Merging down the layer is bad if you really do not need, cos
you lose the edit feature, as well as the option to move the text. If
you use GDynText in a GDynText layer, you ented edit mode (it has some
bugs about forgeting the encoding, but it is pretty nice).

> Now, maybe I don't actually *need* to anchor the text - however, a
> great many articles and tutorials about the Gimp make use of this
> feature, which seems to me to be permanently disabled. Have I
> fundamentally misunderstood something here?

OK, my prefered method for text: GDynText and keep the layers as they
are, except renaming them to "T: ".
Plain tool is not an option, nor good rendering nor save info, and the
FreeType based text tool, while good rendering, does not keep the info
for edition (my usage requires more editing than very high quality).

For the record: what I have heard is that next version will have good
quality and save info feature. Current solutions are band aids and
will be kept in 1.2 (only bugs are solved in 1.2).

GSR
 
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



RE: [Gimp-user] Border around image.

2002-06-18 Thread Walker, Sam

Correction that should be 
->Script-Fu->Decor->Add Border.

-Sam

-Original Message-
From: Walker, Sam 
Sent: Tuesday, June 18, 2002 7:43 AM
To: 'John Culleton'; [EMAIL PROTECTED]
Subject: RE: [Gimp-user] Border around image.


There is a Script-Fu plugin under ->Decor->Add Border.  A dialog will
ask the border width (x and y), color, and is does a beveling effect if you
specify a "Delta Value on Color" > 1.


-Sam

-Original Message-
From: John Culleton [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 17, 2002 6:23 PM
To: [EMAIL PROTECTED]
Subject: [Gimp-user] Border around image.


I want to put a black border around a (mostly white) image so that it will 
stand out on a white web page. Any suggestions?

I tried the shif/click method of creating a straight line with pencil but it

didn't seem to work for me. Can someone walk me through it step by step?

Thanks

John Culleton


__
D O T E A S Y - "Join the web hosting revolution!"
 http://www.doteasy.com
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] Using text and anchor layer

2002-06-18 Thread Karl Auer

Hi there.

I'm using Gimp 1.2.3 (came with SuSE Linix 8.0).

I have yet to see the "anchor layer" menu item activated. It seems always to be greyed 
out. Is this normal?

When I use the standard text tool and click on my background, a font dialog pops up, 
and I can select all the desired font characteristics. None of these are reflected in 
the "preview" window, into which I've typed my text. Then when I click "OK", 
absolutely nothing at all happens, except that the dialog disappears. No text appears 
on the background. I'm fairly sure I'm not creating text in the background colour, 
too. So, is the standard text tool just unusably broken, or am I missing some vital 
step or doing something else really dumb?

So, I try the dynamic text tool. Much better, at least I can get text to appear, and 
the preview *does* show me all the selected characteristics. Placement is always at 
top left of the background layer, on a separate GDynText layer. To position the text I 
have to then position the text layer over the background. Not much of a problem. 
However, I can't anchor this layer. "Merge down" works, but then of course the text 
becomes one with everything and is no longer separately manipulable.

Now, maybe I don't actually *need* to anchor the text - however, a great many articles 
and tutorials about the Gimp make use of this feature, which seems to me to be 
permanently disabled. Have I fundamentally misunderstood something here?

Yours in some mystification, K.

--
~~~
Karl Auer ([EMAIL PROTECTED])   +41-43-2660706 (h)
http://www.biplane.com.au/~kauer/  +41- 1-6327531 (w)
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



RE: [Gimp-user] Border around image.

2002-06-18 Thread Walker, Sam

There is a Script-Fu plugin under ->Decor->Add Border.  A dialog will
ask the border width (x and y), color, and is does a beveling effect if you
specify a "Delta Value on Color" > 1.


-Sam

-Original Message-
From: John Culleton [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 17, 2002 6:23 PM
To: [EMAIL PROTECTED]
Subject: [Gimp-user] Border around image.


I want to put a black border around a (mostly white) image so that it will 
stand out on a white web page. Any suggestions?

I tried the shif/click method of creating a straight line with pencil but it

didn't seem to work for me. Can someone walk me through it step by step?

Thanks

John Culleton


__
D O T E A S Y - "Join the web hosting revolution!"
 http://www.doteasy.com
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



Re: [Gimp-user] Border around image.

2002-06-18 Thread John Keniry

On Tuesday 18 June 2002 00:23 am, John Culleton wrote:
> I want to put a black border around a (mostly white) image so that it will
> stand out on a white web page. Any suggestions?

Why not just use the border attribute in your html, eg:



-- 
John

NUMBER CRUNCHING: Jumping on a Computer.
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user