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:

img src=mypic.jpg alt=mypic.jpg width=??? height=??? align=left 
border=1

-- 
John

NUMBER CRUNCHING: Jumping on a Computer.
___
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 Image-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] 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

Correction that should be 
Image-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 Image-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] 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



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,
   Toolbox/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