RSS/Atom feed Twitter
Site is read-only, email is disabled

Gimp-user Digest, Vol 58, Issue 35

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

mailman.89966.1185490521.16... 07 Oct 20:18
  Gimp-user Digest, Vol 58, Issue 35 Dave Guard 27 Jul 06:29
Dave Guard
2007-07-27 06:29:33 UTC (over 17 years ago)

Gimp-user Digest, Vol 58, Issue 35

Hi,

Someone please remove me from the list. I've tried the instructions that come with each email several times but my email requests bounce and the login doesn't accept my password. Hitting the unsubscribe button does nothing and trying to change my password doesn't seem to send an email at all.

Thanks in advance and sorry for sending this to the whole list.

Bye

On 7/26/07, gimp-user-request@lists.xcf.berkeley.edu < gimp-user-request@lists.xcf.berkeley.edu> wrote:

Send Gimp-user mailing list submissions to gimp-user@lists.XCF.Berkeley.EDU

To subscribe or unsubscribe via the World Wide Web, visit https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user or, via email, send a message with subject or body 'help' to gimp-user-request@lists.XCF.Berkeley.EDU

You can reach the person managing the list at gimp-user-owner@lists.XCF.Berkeley.EDU

When replying, please edit your Subject line so it is more specific than "Re: Contents of Gimp-user digest..."

Today's Topics:

1. Re: Programmatically modifying text in .xcf files. (mal content) 2. Re: Programmatically modifying text in .xcf files. (John R. Culleton)
3. Re: Programmatically modifying text in .xcf files. (mal content) 4. Re: Programmatically modifying text in .xcf files. (Bruce Bertrand)
5. Re: Programmatically modifying text in .xcf files. (Sven Neumann) 6. Re: Programmatically modifying text in .xcf files. (John R. Culleton)
7. Re: Programmatically modifying text in .xcf files. (Simon Budig) 8. Adventures in MacPorts Land (continued) (Victor Domingos)

----------------------------------------------------------------------

Message: 1 Date: Thu, 26 Jul 2007 20:18:05 +0100 From: "mal content"
Subject: Re: [Gimp-user] Programmatically modifying text in .xcf files.
To: "John R. Culleton"
Cc: gimp-user@lists.xcf.berkeley.edu Message-ID:

Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 26/07/07, John R. Culleton wrote:

If you are on a Linux or similar platform something along the lines of awk or sed could be possible approaches. I quote from an old manual:
"The advantages of sed are that it can apply the same editing comands to many files; it can edit a large file quickly; and it can readily be used with pipes."

Yes, the thing I was worried about though is damaging the binary files. The text I wish to replace the original text with is about twice the length of the original. Is the xcf file format flexible enough to really allow editing in this way?

thanks,
MC

------------------------------

Message: 2 Date: Thu, 26 Jul 2007 15:25:45 -0400 From: "John R. Culleton"
Subject: Re: [Gimp-user] Programmatically modifying text in .xcf files.
To: gimp-user@lists.xcf.berkeley.edu Message-ID:
Content-Type: text/plain; charset="iso-8859-1"

On Thursday 26 July 2007, mal content wrote:

On 26/07/07, John R. Culleton wrote:

If you are on a Linux or similar platform something along the lines of awk or sed could be possible approaches. I quote from an old manual:
"The advantages of sed are that it can apply the same editing comands to many files; it can edit a large file quickly; and it can readily be used with pipes."

Yes, the thing I was worried about though is damaging the binary files. The text I wish to replace the original text with is about twice the length of the original. Is the xcf file format flexible enough to really allow editing in this way?

thanks,
MC

Don't know :
Subject: Re: [Gimp-user] Programmatically modifying text in .xcf files.
To: "John R. Culleton"
Cc: gimp-user@lists.xcf.berkeley.edu Message-ID:

Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 26/07/07, John R. Culleton wrote:

Don't know :

Well what it basically is, is a CD cover and booklet. The cover and booklet conform to an image template so that they print the correct size and with correct margins at a given DPI.

The covers are being produced for a range of CDs (the layout is the same on each disks but the images are different). The first page of every booklet lists credits and other information and these now have to be changed en masse as the text has been rewritten.

I suppose I could export the covers to a page layout program but that would take a lot of work and would complicate our release process quite a bit.

I'm not averse to the idea of writing a program to make these transformations in C, but I'm not aware of the existence of a 'libxcf' or equivalent to access the file format and I really don't want to have to do my own parsing!

cheers,
MC

------------------------------

Message: 4 Date: Thu, 26 Jul 2007 16:49:43 -0400 From: Bruce Bertrand
Subject: Re: [Gimp-user] Programmatically modifying text in .xcf files.
To: gimp-user@lists.XCF.Berkeley.EDU Message-ID:
Content-Type: text/plain

On Thu, 2007-07-26 at 21:03 +0100, mal content wrote:

On 26/07/07, John R. Culleton wrote:

Don't know :

Well what it basically is, is a CD cover and booklet. The cover and booklet conform to an image template so that they print the correct size and with correct margins at a given DPI.

The covers are being produced for a range of CDs (the layout is the same on each disks but the images are different). The first page of every booklet lists credits and other information and these now have to be changed en masse as the text has been rewritten.

I suppose I could export the covers to a page layout program but that would take a lot of work and would complicate our release process quite a bit.

I'm not averse to the idea of writing a program to make these transformations in C, but I'm not aware of the existence of a 'libxcf' or equivalent to access the file format and I really don't want to have to do my own parsing!

cheers,
MC

You should check out Swiss File Knife. It's a sed-like program that works on binaries as well as text. Just be sure to back up your original data.

http://sourceforge.net/projects/swissfileknife

~B

------------------------------

Message: 5 Date: Thu, 26 Jul 2007 23:03:15 +0200 From: Sven Neumann
Subject: Re: [Gimp-user] Programmatically modifying text in .xcf files.
To: mal content
Cc: gimp-user@lists.xcf.berkeley.edu Message-ID:
Content-Type: text/plain

Hi,

On Thu, 2007-07-26 at 19:11 +0100, mal content wrote:

I have a large number of xcf files that have a section of text embedded in them. Is there a tool or method available to safely and reliably modify this text (replace it with other text) from the shell, or some other interface that doesn't require me to open 100 or so files in Gimp*?

We are still lacking a proper PDB API for text layer and without this you can't do what you are asking for. Hopefully someone will contribute this missing part at some point.

Sven

------------------------------

Message: 6 Date: Thu, 26 Jul 2007 17:36:20 -0400 From: "John R. Culleton"
Subject: Re: [Gimp-user] Programmatically modifying text in .xcf files.
To: gimp-user@lists.xcf.berkeley.edu Message-ID:
Content-Type: text/plain; charset="iso-8859-1"

On Thursday 26 July 2007, mal content wrote:

On 26/07/07, John R. Culleton wrote:

Don't know :

Well what it basically is, is a CD cover and booklet. The cover and booklet conform to an image template so that they print the correct size and with correct margins at a given DPI.

I suggest that the cover art is a good Gimp application but the booklets aren't. An application such as TeX (e.g, Context) could prepare those pages. If art work or backgrounds etc. were needed they could be prepared via Gimp or a drawing program and incorporated as needed on the pages. But gimp would not be used to create the final image to go to the printer. That way you would have the flexibiilty to substitute text in a batch editor program like sed and have the pages adjust automatically. Margins are easily controlled in a layout program and dpi is not really a factor with text.

I am afraid that you may have painted yourself into a corner by using gimp as a page layout program. That is not its strength. If you send me a sample of one of the bookets I will see what I can do with a conversion program.

--
John Culleton

------------------------------

Message: 7 Date: Fri, 27 Jul 2007 00:20:02 +0200 From: Simon Budig
Subject: Re: [Gimp-user] Programmatically modifying text in .xcf files.
To: gimp-user@lists.XCF.Berkeley.EDU Message-ID:
Content-Type: text/plain; charset=us-ascii

John R. Culleton (john@wexfordpress.com) wrote:

On Thursday 26 July 2007, mal content wrote:

Is there a tool or method available to safely and reliably modify this text (replace it with other text) from the shell, or some other interface that doesn't require me to open 100 or so files in Gimp*?

If you are on a Linux or similar platform something along the lines of awk or sed could be possible approaches.

You would end up with invalid xcf files. Even if you could replace the text without damaging the file structure your image still would look the same, since even text layers are stored as pixels. The text you find in the xcf file is metainformation that would get used if you'd change the text in the gimp and thus would force gimp to re-render the text layer.

So basically the only tool being able to effectively change the text is the Gimp itself. And - as Sven mentioned - since we unfortunately do not have a PDB API for this functionality it is impossible to create a script to let gimp do this.

Bye, Simon
--
simon@budig.de http://simon.budig.de/

------------------------------

Message: 8 Date: Thu, 26 Jul 2007 23:55:50 +0100 From: Victor Domingos
Subject: [Gimp-user] Adventures in MacPorts Land (continued) To: gimp-user@lists.XCF.Berkeley.EDU Message-ID:
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hi! I tryed to contact the fontconfig port maintainer, but had no responde yet. Meanwhile, I have uninstalled macports and tryed it all from start. I reinstalled MP and tryed to build gimp-dev again. Everything seemed to go ok, but I was not able to run it. Like a friend of mine, I get the following error message:

----------------

$/opt/local/gimp-2.3/bin/gimp-2.3 process 23395: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/opt/local/var/lib/dbus/machine- id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue. D-Bus not compiled with backtrace support so unable to print a backtrace
Abort trap

------------------

Does anyone have any idea about what this means?

Thanks in advance. I am sending an email to the port maintainer. Let's see.

Victor Domingos

------------------------------