Real-life units support in the plug-ins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

this is a call to all plug-in developers and everyone else who wants to
help. The development version of The GIMP knows about image resolution and 
real-life units for a longer time now. But still a lot of plug-ins don't
make use of this functionality. For consistency all plug-ins that touch
dimensions or resolution should take care about correctly setting the image
resolution and if they ask for lengths, size or dimensions they should do
this using real-life units.

Libgimp does provide functions for all this. The resolution and unit of an
image can be retrieved and set through it. For interactive plug-ins there's
the gimp_size_entry widget that handles most resolution stuff automagically.

To help plug-in authors to change their plug-ins accordingly I have recently
changed the Grid plug-in as a simple example. I have put a lot of comments
into the code to make it easy for other developers to copy from it. The
updated Grid code is in CVS. If you don't have CVS access, grab it from 

	http://sven.gimp.org/files/grid.c

Other plug-ins that already use the new functionality and can be used as
examples include:
	- screenshot
      	- tiff
	- png 
	- newsprint
	- jpeg
	- psp

Some plug-ins that come to mind that absolutely need the new functionality
are:
	- print
	- ps
	- all blur plug-ins
	- most distort plug-ins
	- xscanimage	

This is not a very difficult task and an easy way to receive respect from
the GIMP community, get famous and eventually rich. So, fire up your
favorite editor and keep those patches coming...


Salut, Sven


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux