Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts

Saturday, August 28, 2010

GIMP can now export PDF's!

Hello!

After some work, I'm proud to say that GIMP can now export PDF's using my new cairo-based pdf export plugin!
Go check it out - it's in the main source repository in the master branch :D

Comments and feedback are more than welcome - you have until 2.8 to affect how this plugin will work and which features it will have. Currently, it has:

  • Support for multiple pages using multiple images using File->Create->Multiple-Paged PDF...
  • Support for exporting text as text!!
  • Support for resolutions

And it has the following optimizaiton options:

  • Replace rectangles of a single color with a vector shape. This can dramatically decrease the file size (think of all the single-colored background layers that are now saved as vector instead as bitmap)
  • Remove the alpha channel of layers where it's unused, to decrease the file size
  • Discard layers which are not visible or are100% transparent
  • Can either apply layer masks (to decrease the file size) or keep them (better quality pdf, bigger file size)

Happy Gimping!

Edit: Updated the post with details on the plugin

Tuesday, August 10, 2010

Some updates + Feedback Needed

As I said in my previous post, I'm a bit inactive due to the tests which I had in university. After finishing Logics for Computer Science, tomorrow I have my last test - the dreaded Calculus 2...

So starting tomorrow noon (it's night here right now), I'm back on full time GIMP coding! Here is what I'm up to, and reasons for some delays:

Multicolored Text Layers
On their way - no real reason for a delay, I just need to fix some (hopefully) easy bugs :-)

Where is the PDF plugin which you promised?
A new API is being introduced into GIMP - an api for accessing layers, channels, masks and paths - all as GimpItem objects. I want this api to be finished before I'm done, so I'll write the code once.
Also, it's currently impossible for plugins to access the layers inside layer groups - instead they get one layer which is a merged version of all the group. This means that text as text will be ruined if it's inside a group, so I'll wait a while to see if there is any chance it will be fixed before I continue.
Finally,it's probably better to finish implementing the multicolored text patch, so I'll be able to test the pdf plugin when it's already integrated =)

Angular Guides - Feedback Needed
Before you get excited, don't. I'm checking the option of adding support for guides with arbitrary angles inside GIMP (instead of only horizontal and vertical like now). I'm in doubt this is going to happen soon - I had a day to play with the code a bit, but nothing more.
Someone (mitch if I remember right) suggested to implement the new guides system as paths; You can currently snap to the active path as if it was a guide (View->Snap to active Path) - that's a less commonly known feature. Anyway, Implementing it this way will possibly allow us to add things like isometric/polar grids and other snapping shape we can imagine. So even if this sounds harder, it's worth a check.

Here is where I need your feedback on:
  • What kinds/shapes of guides/grids would you like to see in GIMP?
  • Do we need guide groups (for enabling/disabling many guides at once)?
  • Other guide related requests?
I don't promise anything yet, but if I'll know what I'm aiming for before I begin, it might help :-)

Usability of GIMP's menus - Feedback Needed
Finally, there have been a discussion on the usability of the GIMP menus. There were discussions about adding searchboxes to search GIMP's menus (since these can get cluttered if having many plugins).

Here is where I need your feedback on:
  • Would you like to be able to categorize your plugins? Or maybe tag them and browse by tags?
  • Do you need to be able to edit the categorization of an existing plugin (if such categorization exists)?
  • How would you like to search for a plugins/built-in functions? What should appear next to the description of each action/plugin?

I'll raise some of the suggestions on the discussions in the mailing list or the developer's IRC. We need your feedback! If we want to make GIMP better for the users, we better hear them =)

Thursday, July 8, 2010

Updates

I'm back - Finished all the university tests finally!
Some updates:
  • I got myself a working windows computer again on which I can test the compilation of GIMP - and this time it much faster (last time it was a computer with a disk access throught the network and the connection speed made the compilation 24 hours long...). I'll try to get this fixed as quickly as possible (and the IT at the university are trying to find me an even better windows computer).
  • I missed the 2.7.1 release with my PDF plugin - I had too many tests...
  • Decided to be a bit artistic - I submitted the new icon for the cage transform tool - you can take a look at it here.
  • After finishing my course in Multicore Programming, I decided to try to do something practical with it. I'll be experimenting with multicore plugins for GIMP over the next week and I'll see what's possible (if any).

Sunday, June 20, 2010

Gimp Updates: Multi-Colored Text, PDF Export, Hebrew Translation and more...

Here are some quick updates from the last several days:
  • First announcement: GIMP is currently being translated to Hebrew!
    As a Hebrew speaker, I was very disappointed from the state of the Hebrew translation of GIMP. So, I decided to start and translate it, and I already fixed several bugs to make the translation to Hebrew easier.
    The translation is going on well, and I'll start updating the main git repository with the translations soon.
  • I have some progress on the PDF export from GIMP. Hopefully it will be committed this week - all the blocking issues were resolved and basically all I need to do is to connect the GUI.
  • I did try to implement multicolored text support in GIMP (several colors in the same layer) and it failed for the most annoying reason - text in gimp was rendered as an alpha mask for a color layer.
    Mitch fixed it recently, so this means that I'll be able to retry my patch somewhere soon.
And finally, I have to say that I'm quitting (at least for now) the attempt to save single window mode layout in GIMP. It's not so practical right now, since the object which hold the data (GimpDockWindow in swm and GimpColumn in mwm) are being destroyed when switching between modes.
After discussing it with Martin, I understood fixing this is not trivial, so I'm not going to do it anywhere soon...