[Gimp-user] PNG file gamma again. Bug in png save?

2009-10-30 Thread Juhana Sadeharju

GIMP saves the file gamma 0.4545 even if I uncheck its saving
in PNG save dialog.

Both checked and unchecked will save the gamma 0.4545.
xloadimage shows both saves equally dark, with wrong intensities.

Version: GNU Image Manipulation Program version 2.4.5

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] pnmtopng problem

2009-10-30 Thread Juhana Sadeharju

(I use pnmtopng because GIMP cannot save PNG images properly.)

What pnmtopng tries to say below? How to fix it?
All PNM images have the same P6 format.

pngtopnm Screenshot-79.png | pnmcut 7 50 1012 688 | pnmtopng  09.png
pngtopnm Screenshot-80.png | pnmcut 7 50 1012 688 | pnmtopng  10.png
pnmtopng: 256 colors found

09.png: PNG image data, 1012 x 688, 8-bit/color RGB, non-interlaced
10.png: PNG image data, 1012 x 688, 8-bit grayscale, non-interlaced

convert of GraphicsMagick does the conversion properly with image 10.

Juhana
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] File gamma 0.4545? And pnmtopng.

2009-09-30 Thread Juhana Sadeharju
What an earth. I found that GIMP has placed file gamma 0.4545
to PNG images without my will.

$ xloadimage x.png
x.png is 1120x840 PNG image, color type RGB, 8 bit, file gamma 0.4545

The image is displayed too dark.
The brighter image is correct because xloadimage shows the
original x.ppm that way.

I found this problem only now because GIMP, eog, gqview, and
webbrowsers ignores the file gamma. Is it wrong to ignore
the file gamma?

How to delete the file gamma with GIMP or with command line
converters? What convert -gamma 1.0 would do for x.png?
(1) Fix the file gamma to 1.0? (2) Modify the pixel values?
Similar questions about GIMP and other programs.

How to configure GIMP to not set the file gamma?
I have never set the gamma value. I have always wanted 1:1
correspondence between the file and the display.
Who GIMP developer uses 0.4545 gamma? :-)


BTW, I remade the png by not using GIMP:
cat x.ppm | pnmtopng  x.png

$ xloadimage x.png
x.png is 1120x840 PNG image, color type PALETTE, 8 bit

The PNG image should be RGB, not PALETTE!
Somebody should fix the pnmtopng.

Juhana
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Creating texture images?

2009-09-30 Thread Juhana Sadeharju
How to convert photos taken with a cheap Canon camera to
what can be used as textures in games? See GPU Gems 3 for
linear space images and how they are used in the rendering.

Do we know enough about how a particular camera works?
How to measure how a camera works if that is necessary
in the process?

Juhana
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] dds/dxt source code?

2007-07-31 Thread Juhana Sadeharju

Hello. The plugin gimp-dds-1.2.1 seems to use either graphics card
or dxtn.dll/libtxc_dxtn.so binaries for decompression.
Both are missing from my computer. Anyone has written an open source
decompressor?

Juhana
-- 
  http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Acquiring multiple screenshots?

2007-05-23 Thread Juhana Sadeharju

The periodic screenshot script is at
http://registry.gimp.org/file/periodic_screenshot.scm?action=downloadid=8922
but it fails because it cannot find plug-in-screenshot procedure.

I could not find any other screenshot acquire procedure. Help.
Looks like I'm able to write a suitable script myself if such
a screenshot procedure is available. What procedure GIMP itself
uses in File/Acquire/Screenshot tool?

Juhana
-- 
  http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Acquiring multiple screenshots?

2007-05-23 Thread Juhana Sadeharju

plug-in-winsnap, but I am not sure if it can be called
non-interactively.

I cannot get it work interactively nor noninteractively.
Anyone could give a try?

If you could add the proper procedure (e.g., noninteractive
winsnap) to the next version of GIMP, would that be ok as well.

As an alternative, I could try to minimize the mouse clicks:
(1) A key shortcut to File/Acquire/Screen Shot...
(2) Default to Grab the whole screen. How? If possible.
(3) A periodic script which saves and closes any active images
it finds. (Screenshots are named as Untitled-1.0, Untitled-2.0 etc.)

BTW, IrfanView has the needed features, but they do not work because
probably the capture setup option file is in the protected
installation directory, and defaults are capture-and-edit. :-(

Juhana
-- 
  http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Re: How damaged photos my camera takes?

2006-10-02 Thread Juhana Sadeharju

How would one correct the photos 7748 and 7749 to look like
7741 and 7751? And at the same time preserving the sunrays?

http://www.funet.fi/~kouhia/7748.jpg  (automatic mode)
http://www.funet.fi/~kouhia/7749.jpg  (manual mode with less exposure)
http://www.funet.fi/~kouhia/7741.jpg  (automatic mode)
http://www.funet.fi/~kouhia/7751.jpg  (automatic mode)

Both my attempts uses first the curves tool and then adds saturation,
but I have no idea what would be correct/best operations.
 http://www.funet.fi/~kouhia/7749mod1.png  (my attempt 1)
 http://www.funet.fi/~kouhia/7749mod2.png  (my attempt 2)

The curve was designed using the rules:
 (1) The top values, i.e., sky, are ok and thus curve y = x should be
 applied at top.
 (2) Exposure time was low at bottom+middle and thus curve y = 3x (for
 example) should be applied there. The linear function y = 3x means
 that the exposure time is tripled.
 (3) Some smooth piece of curve connects the bottom and top segments.
 In practise, I had to use only 4 control points in the curve
 because more points meant wavy curve. That limited the smooth
 piece of curve between the bottom and the top greatly.

Better spline would be needed in the curve tool, like what is in the
path tool (but note that I have GIMP 1.2.3).

Saturation was added until the photo looked ok enough. The saturation
worked like a magic. I wonder why it seems to be needed. Is it a camera
property that low exposure works differently than long exposure?
Or is it property of the curve tool? I.e., a better curve tool would
always add the saturation.

The image 7749mod2 looks tolerable, but the noise is a big problem.
I guess better camera would solve that. I could also try the HDR
photo techniques as I found Olli's dynamic range extender. I have
a code somewhere which I obtained from a person who wrote similar
photo combiner for multiple photos, and wrote a Siggraph paper on it.
Though, digital cameras could have a sequencer which can be programmed to
take multiple photos as fast as possible with different settings
(exposure, focus, zoom, etc). No patent pending.

Juhana
-- 
  http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Re: How damaged photos my camera takes?

2006-09-27 Thread Juhana Sadeharju
From: Mogens Jaeger [EMAIL PROTECTED]

ftp://ftp.funet.fi/pub/pics/freephotos/juhana/withstand/IMG_3922.JPG
ftp://ftp.funet.fi/pub/pics/freephotos/juhana/withstand/IMG_3923.JPG
 
As I see your pictures, your problem is not a question on how to use 
Gimp, but how to use your camera.
[ ... ]
What preciesly is it, you can't find out, and wants help for?

Here I merely asked help in analyzing the problem. And if the
problem can be fixed in post processing. Is the white sky
overexposed or is the white point at white instead of blue?
Why the trees in 3923 looks pale? Is it because of some kind of
overcurving (similar to gamma correction)? They are GIMP related
questions.

I asked later in gphoto-user about the camera issues. And plan to
ask in rec.photo.* newsgroups if the issue is not clear enough
after all this.

Some weeks ago I had a LEGO photo with default white point, and
another photo with teached white point. I tried to come up with
formula which makes the change of the white point, but for some
reason I failed. So, reverse engineering the camera behaviour by
matching the photos 3922 and 3923 may be too difficult problem
for me.

Juhana
-- 
  http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Re: How damaged photos my camera takes?

2006-09-14 Thread Juhana Sadeharju

Hello. I took photos with Canon IXUS II + automatic mode:
 ftp://ftp.funet.fi/pub/pics/freephotos/juhana/withstand/IMG_3893.JPG
 ftp://ftp.funet.fi/pub/pics/freephotos/juhana/withstand/IMG_3896.JPG
 ftp://ftp.funet.fi/pub/pics/freephotos/juhana/withstand/IMG_3922.JPG
 ftp://ftp.funet.fi/pub/pics/freephotos/juhana/withstand/IMG_3923.JPG

Here is my own analysis of my photos above. This is starting to be more
a topic of a photo group discussions. I just wanted to know what the post
processing people like you think about the photos.

It looks like in both photo-pairs the bad photo (3893 and 3922)
is overburned. The blue flowers (3893) and the sky (3922) shows white
which cannot be fixed.

In addition to overburning, the photo 3922 shows some kind of
intensity curving. I.e., take the better photo 3923 and try modify
it to look like the bad photo 3922 with the curves tool. The curve
I had to use was of the damaging type -- overcurving.

White-point problem? I don't know how to correctly change the white
sky in 3922 to the blue sky like in 3923.

The manual mode seems to not be manual at all:
In photoing a new tree scene in two parts with the parameters fixed,
the photos were exposed differently. The common area in two photos
is not the same. It is just like the pair 3922/3923: with overburning.
The camera does something automatic in the manual mode.

While the exposure setting can be locked for multiple photos and that
would have solved the problem, not always I have a blue sky available
for reference! The camera should expose all parameters to user, or
have a possibility to use existing photo as a reference, or have
a preset system for exposure.

I hope camera manufacturers start increasing the number of bits in
the pixels so that camera could take and view good photos without
overburning. They are now marketing more pixels instead of improving
the photo quality (lens + exposure). At least people can see the poor
photos with a good resolution. Overcurving is mystery to me: the photo
3923 modified with a mild curve looks better than 3922.

Juhana
-- 
  http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] How damaged photos my camera takes?

2006-09-05 Thread Juhana Sadeharju

Hello. I took photos with Canon IXUS II + automatic mode:
 ftp://ftp.funet.fi/pub/pics/freephotos/juhana/withstand/IMG_3893.JPG
 ftp://ftp.funet.fi/pub/pics/freephotos/juhana/withstand/IMG_3896.JPG
 ftp://ftp.funet.fi/pub/pics/freephotos/juhana/withstand/IMG_3922.JPG
 ftp://ftp.funet.fi/pub/pics/freephotos/juhana/withstand/IMG_3923.JPG

There is something wrong with the camera as can be seen from the pairs
3893/3896 and 3922/3923. In photo 3893 the flowers glows and are white,
not blue. In photo 3922 the trees looks somehow poor.
Between the two versions I only inserted white paper (3896) or tilted
the camera toward the blue sky (3923).

What is wrong? How to fix the photos? How ever I could make a panorama
photo out of 3922 and 3923? How damaged the photos are? In what way(s)
the photos are damaged?

Should I switch the camera to some other camera? Canon's top model
Powershot 3 IS seems to damage the photos too, but I don't know
if the camera can be tuned in the automatic mode because I had
only brief moment to test the camera.

Why Canon thinks it is ok to damage the photos in automatic mode?
Very sad, I have taken hundreds of photos for my freephotos project
and mostly they look as bad as 3893 and 3922. More mild automatic
settings would have allowed me to fix the photos later. Not now.

Juhana
-- 
  http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] How to move the white point?

2006-08-07 Thread Juhana Sadeharju

Hello. How do I move the white point in GIMP? All three photos below
were taken with the camera. How could I reproduce the photo 3 from
photos 1 and 2 in GIMP? That is, assume I don't have the photo 3 below
but I want something close.

http://www.funet.fi/~kouhia/whitepoint1.jpg % wrong whitepoint
http://www.funet.fi/~kouhia/whitepoint2.jpg % wrong whitepoint, example white
http://www.funet.fi/~kouhia/whitepoint3.jpg % whitepoint based on example white

Juhana
-- 
  http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Re: Livre sur Gimp (aka publishing GIMP books)

2005-09-12 Thread Juhana Sadeharju
From: Michael J. Hammel [EMAIL PROTECTED]

FWIW, I'm working on another GIMP book, tentatively titled The Artist's
Guide to GIMP Effects.  It's essentially a followup to my first book,
The Artist's Guide to the GIMP.  I think the publication date is early
next year - publisher is No Starch Press.

Could you all authors limit the copyright to a few years?
(Instead of having copyright term 80 years after you drop off.)
It should not make harm to the business.

Well, the software was given free to you, give us something back.

Juhana
-- 
  http://music.columbia.edu/mailman/listinfo/linux-graphics-dev
  for developers of open source graphics software
___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] Re: [Gimp-developer] Re: Usability test - Results available

2004-06-11 Thread Juhana Sadeharju
From:  Carol Spears [EMAIL PROTECTED]

gimp has been able to do this since gimp-1.0.2 that i know of.

Good. Anyone has used it to make the screenshots? I would like to take
a look.

Juhana
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] Re: Gimp on Slashdot

2004-05-07 Thread Juhana Sadeharju
From: Alan Horkan [EMAIL PROTECTED]

Adobe Photoshop allows one to easily draw shapes (such as polygons) that
are very difficult to draw using only select+Stroke.

Cinepaint has the drawing code. They took the vector drawing plugin
and made it work directly within the image.

The ex-plugin has a lot of room for improvements, but it is a start
of something.

How many more of these articles must be written before the Gimp developers
accept that simple drawing tools are a must for a certain type of user?

But maybe they are not that easy to code? Adding a vector layer to
the images should be easy if the image object is good, but the vector
manipulations can be difficult. Typically each plugin has its own
kludge way to manipulate vector objects (selection tools, crop tool, etc).
The selection tool vector drawing and the crop tool vector drawing
are not visible in other views of the same image because the framework
is kludge.

What we need is a good old vertex/edge/polygon framework. We don't
have even the simplest systems developed at 1960s. Check out
  ftp://ftp.funet.fi/pub/sci/audio/devel/constraints/sketchpad.pdf
what I mean.

I'm figuring out what kind of framework would be ok. Anyone
would like to help?

Regards,
Juhana
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Processing the scanned textual images?

2001-04-03 Thread Juhana Sadeharju

From: "Michael P. Soulier" [EMAIL PROTECTED]

You might then consider ImageMagick. It's intended for this kind of thing,
as opposed to a lot of user interaction. 

I still have to define __interactively__ one rectangle per image.
ImageMagick cannot do it.

Gimp can do what I want, but I should be able to move the
actual performance of operations to the patch processing.

In my own Gimp script:
 -Am I able to make a dialog window with one button: "next image"?
 -The script is able to close the previous image and open the next
  image?
 -While the image is open, am I able to draw a selection rectangle
  or a crop tool rectangle on the image?
 -To save the rectangle information to a file (when the "next" button
  is pressed while the rectangle is still visible)?

After all that I would be able to use another script to actually
perform the operations. If all above can be performed, I could check
that script myself.

By the way, it doesn't look good if people are here pointed to use
other software; why not ask how Gimp could be improved for making
all the above possible? Thanks.

Regards,

Juhana
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] Processing the scanned textual images?

2001-04-02 Thread Juhana Sadeharju

Hello. I would be able to process hundrets of scanned textual
images in an user friendly manner:
 -No open file dialogs; next image button would be fine
 -I should be able to define a rectangle (for cropping) to each image
 -Cropping and other operations should then be done off-line (in patch
  process)

The image operations include: cropping, text skew detection, rotation
by the skew angle, greyscale balancing over the whole image, greyscale
level quantization (to a fewer amount of levels). After all these are
done, then each image are padded to the same size.

I would appreciate if the amount of user interaction and the waiting times
are kept in minimum. I have ideas on this if this requires some script or
plug-in development.

Best regards,

Juhana
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user