Posts Tagged ‘English’

About Krita and Gimp, in default installation

26 November, 2009 16 comments

The removal of GIMP from the default installation of Ubuntu has raised quiet a stir. And as drawn quiet a bit of advertisement for Krita, as some people suggested the use of Krita instead, but for no good reasons, since Krita is not a good replacement for GIMP as a default installation.

You have to consider the use case of the default installation, since the Ubuntu people are trying to make is a distribution that is usefull for the average users, the default installation need to cover the need of the many. And what most people want to do with their picture is to classify them, do light weight retouching (for instance, adjust the brightness, remove red eyes) and then print the image or send it on the Internet. Surely, both Krita and GIMP can do it, but they have way more features than what is needed for most users. As Sven Neumann, one of the core GIMP developer, said GIMP is a high-end application for professionals, and so is Krita. Some might think that Krita has a GUI that is more friendly to the beginner, but that is not the problem, it is still packed with features that are of no interest to most users. And there are tools that are better suited to accomplish the task of those users, this is why a pictures collection management tool, such as F-Spot or Digikam is a much better choice, it covers the main usage of the majority of users. Even if Digikam is designed for professional photographer, I still think it scale nicely to average users. And when the user want to do more with images, he can just go to his favorite package manager, and install GIMP or Krita.


Inserting shapes/images in KOffice

21 October, 2009 Leave a comment

A while ago, in a praise of karbon 2.0 I wrote, someone commented on the “lack” of tools in karbon, as opposed to inkscape. And from forum posts, or, it seems to cause some confusions. For instance, there is no rectangle or circle tool in karbon. And there will never be. The reason is that for KOffice 2, the tools are meant for user interraction, and for manipulating object in the canvas. Inserting shapes is done through the “Add shape” docker, which allow to manager your collection of customs shapes, as well as standard shapes, you can then just drag and drop the shape, or select a shape and then by clicking and dragging on the canvas you can select the size of the shape like with a tool. Once the shape is on the canvas you can go to the toolbox and start having fun with your shape.

video of karbon adding shapes

And of course, since the technology is shared, you add shapes to other KOffice application in the same way. To add a text in Krita ? Go to the add shape docker, drag and drop, and enjoy ! To add an image to your presentation in KPresenter ? Go to the add shape docker, drag and drop, and enjoy ! To add a smiley to KWord… you get it !

Aquarium, begining of planning

20 October, 2009 Leave a comment

I have always liked colored fishes, like clown fish, way before Disney’s movie. And a certain fascination for seahorses, probably because they look so unlike other water animals. During a visit to Göteborg’s aquarium with Hanna, I remembered: “I want one”. What has been holding me back, so far, is that it is a lot of work, and once you started it, it’s a responsibility, you have to take care of it, also in the past few years, I have had to work for about a quarter of time in Paris, the rest of the time I was working in Toulouse, but with holidays and week-ends, that mean I was almost half of the time out of town. But now that my thesis is nearing the end, and that I am going to move somewhere more permanent, or at least with a full time job on a single location, then maybe, it’s time to give it some serious thinking.

Clown fish

Some initial browsing on internet have shown me that, after the initial setup, it isn’t so much a time consuming task, mostly dedication, feeding everyday, and changing part of the water every week. And watching. And getting pleasure from a beautiful aquarium.

Since what dragged me into this are clown fishes, I will want a salt water aquarium. Since it’s a display of nature, it’s important the aquarium is friendly to the inhabitant, and friendly to the environment. Which is going to be a difficult task for a salt water aquarium.

Categories: Aquarium Tags: , , ,

Shiva generator, krita and metaball

24 September, 2009 1 comment

One of the new thing of the upcoming 2.1 release for Krita (among improved stability) is that the OpenGTL library is now even more integrated, which makes it even easier to write cool filters or generators for Krita.

Today, I will speak about generators. Since Krita 2.0, there is a special kind of layers in Krita: generators, it’s like a normal layer, except that the pixel are generated automatically. In 2.0, the only generator available was a plain color generator. In 2.1, you can write your generator using the Shiva language.

kernel Singleball
const float radius = 0.1;
const float ringradius = 0.05;
const float ycenter = 0.5;
const float ycenter = 0.5;
const float2 center = { IMAGE_WIDTH * xcenter, IMAGE_HEIGHT * ycenter };
dependent float pxradius, pxringradius;
void evaluateDependents()
int image_size = min(IMAGE_WIDTH, IMAGE_HEIGHT);
pxradius = radius * image_size;
pxringradius = ringradius * image_size;
void evaluatePixel(out pixel4 result)
float2 vec = result.coord - center;
float angle = atan2( vec.x, vec.y);
float r = length(vec);
if(r (pxradius + pxringradius))
result = outsidecolor;
} else {
float v = (r - pxradius) / pxringradius;
result = (1.0 - v) * ballcolor + v * outsidecolor;
region generated()
region reg = { 0, 0, IMAGE_WIDTH, IMAGE_HEIGHT};
return reg;

The value of the input pixel is computed in evaluatePixel, while evaluateDependents is used to initialize some constants.

The actual version of this kernel can be found here, the full version contains configurable options for the center and radius.

Then to use your generator in krita you just need to copy it to ~/.kde/share/apps/krita/shiva/kernels. As you can see, I have made a metaball generators, integrated in krita, with its option widget:

KOffice 2.0.0

28 May, 2009 3 comments

After more than three years of development, a total rewrite of KWord, KPresenter and Karbon. Major evolution in KSpread and Krita, to adjust to the new shapes-based framework, the KOffice team has released version 2.0.0 today, which is the first milestone for the KOffice 2 serie. You can read the announcement on

We are aware that this release is far to be perfect, and we still recommand the use of 1.6.3 over 2.0.0, but it open the way to further improvement, first with further bug fixes released in the 2.0.x branch, with three planned maintaince released, about one every month (2.0.x maintenance cycle) and with a 2.1 features release in October (2.1 Release plan).

The main goal of this release is to show the new technologies and user interraction. So we would like to encourage developers to have a look at what they can do as plugins, and to tell us about their experience. And to encourage users to test the new interface and to comments on it.


Missing an application to gather notes and ideas in KDE4, and willing to play with koffice’s flake library, I have decided to start a new application called braindump which is a tool to dump the content of your brain (ideas, bookmarks, images…) to your computer.

For those who wonder why I did, apparently, start from scratch instead of helping with the port of a similar tool (like basket), the main two reasons is that I wanted to write a non-koffice based application to test the limit of the use of flake outside the koffice document based world, and the second reason is that I think that flake is the right technologie to do it:

  • it gives for free a lot of shapes (texts, images, music, chart… other still in developement such as formula, marble… or in planning: video)
  • if I miss a shape (such as a todo/progress), writting it is rather easy and makes it available for reuse
  • it also gives quick access to ODF capabilities (for copy/paste, and importing/exporting information)
  • and currently someone is adding change tracking (for history, and collaborative editing) to flake which should allow braindump to allow collaborative editing of sections.

The main application is 2300 lines of code, I expect that the size will double in order to connect all the missing bits of the UI. But then everything else will be in shared libraries.

Being in a playfull mood I also implemented a web shape for flake, making possible to insert web pages in koffice documents and in braindump:

The source code is hosted in the Braindump repository. You will need KOffice from trunk to be able to build. It’s already somewhat usuable, and I am hopping that the first stable release can happen with KOffice 2.1 in October.

Step bike lane