Gimp-Forum.net
Filter to enhance the quality of image - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Filter to enhance the quality of image (/Thread-Filter-to-enhance-the-quality-of-image)

Pages: 1 2 3 4 5 6 7 8 9


RE: Filter to enhance the quality of image - rich2005 - 05-30-2022

(05-30-2022, 01:43 PM)sallyanne Wrote: There have been some GEGL operation strings put into filters. I think it is contrast over at GC that has done some. I don't know if he is here or not. I have already PM'd him with this thread's link, but I guess it's up to him to come around or not. http://gimpchat.com/viewtopic.php?f=9&t=19939&start=0
Ahhh...I know that. It is not too difficult to determine some GEGL operation values and check them. Open up Filter -> Generic -> GEGL Graph and as an example this is the same as Colors -> Temperature 

[attachment=8022]

You can even use that in a python plugin (or two) this is my test plugin and I can process three negatives in 20 seconds https://i.imgur.com/l1P5JQo.mp4 That can also be used in BIMP, that is what I use it for.

***but*** as Donald Rumsfeld said "there are know unknowns and unknown unknowns"

I know that Stephen Liu uses Ubuntu 20.04 and Gimp 2.10.18
I do not know if Stephen Liu has gimp-python working with this installation.

A python plugin might be useless. However in the spirit of things the plugin(s) attached.  
edit: A better one a few posts down


RE: Filter to enhance the quality of image - Stephen Liu - 05-30-2022

(05-30-2022, 10:16 AM)rich2005 Wrote: This is just going round in circles, the levels / auto-levels / pick a white point...etc is in the video here: https://www.gimp-forum.net/Thread-Filter-to-enhance-the-quality-of-image?pid=29432#pid29432

--------
edit: A bit quicker than the video, a 30 second animation. https://i.imgur.com/vsANS6C.mp4  using the level dialogue. probably as good as you will get that negative.
--------

However if you have used the Gimp sequence for a negative image ➤ auto-white-balanceLinear Invert then you have already applied a auto white balance (from the Colors Auto menu) and of course applying again does nothing.

Since you are not interested in using color curves, I was not going to bother with any more options. However, if you ever get round to batch processing those 1000 negatives the the gmic plugin temperature filter might work, easy to apply in BIMP. All depends on the negative. The new ones maybe too light.

Gmic on one image looks like this, makes sky a little blue, keeps the tree green-ish, this one never going to wonderful.

but might make others too blue. 
Filters -> G'MIC-Qt
Color Temerature = 3.5

I can't get your result.  I have tried other values, not successful.

Colors - Levels -> Edit these Settings as Curves
Adjust Color Curve - looks better.

Please refer to attached screenshots


RE: Filter to enhance the quality of image - rich2005 - 05-30-2022

The problem is I do not know what you are doing, do you use the same procedure as myself ? Too many "it does not work" and then I decide "not to respond".

That gmic setting does not work for you, not a problem, do not complain and use something else.

You could answer one question though, do you have have python working on your Gimp. Look in the Filters menu. Is there a Python-Fu entry ? (near the bottom of the menu, if it there).


RE: Filter to enhance the quality of image - Krikor - 05-30-2022

(05-30-2022, 02:51 AM)Stephen Liu Wrote:
(05-29-2022, 05:01 PM)Krikor Wrote: Maybe you could try:
1- G'MIC - Repair - Unpurple (default values) - Due to the purple tone of your negatives
2- Colors - Linear Invert
3- Colors - Levels - Auto Input Levels

Hi,

Your advice works.  Thanks

Tried your advice again.  Pls refers to attached photos
Smartphone settings: macro and optimize

The result is much better.  Is there anyway to remove the green color on background, not with adjusting RGB curves.  Thanks

(05-30-2022, 10:16 AM)rich2005 Wrote: --------
edit: A bit quicker than the video, a 30 second animation. https://i.imgur.com/vsANS6C.mp4  using the level dialogue. probably as good as you will get that negative.
--------

However if you have used the Gimp sequence for a negative image ➤ auto-white-balanceLinear Invert then you have already applied a auto white balance (from the Colors Auto menu) and of course applying again does nothing.

Pretty much the same as shown in the 30 sec rich2005 video, I just added a black point as well.
So in Colors - Color temperature I lowered the Intended Temperature a bit.
[attachment=8027]
In this case, I think you followed the steps in post #33, so as rich2205 commented, it won't make any difference to re-apply Auto Input Levels, as it's been used before.


RE: Filter to enhance the quality of image - Stephen Liu - 05-31-2022

(05-30-2022, 04:51 PM)rich2005 Wrote: The problem is I do not know what you are doing, do you use the same procedure as myself ? Too many "it does not work" and then I decide "not to respond". 
I follow the steps as advised previously;

Colors -> Auto White Balance
Colors -> Linear Invert
Filters -> G'MIC-Qt -> Color Temperature -3.5

Quote:That gmic setting does not work for you, not a problem, do not complain and use something else.

You could answer one question though, do you have have python working on your Gimp. Look in the Filters menu. Is there a Python-Fu entry ? (near the bottom of the menu, if it there).
No, Python-Fu entry. Script-Fu is here.

On Terminal run;
$ apt policy python
Code:
python:
  Installed: (none)
  Candidate: (none)
  Version table:
     2.7.15~rc1-1 -1
        100 /var/lib/dpkg/status

Neither Python is on Ubuntu 20.04 repo.  I don't know whether it can run on Ubuntu 20.04.  I can find it out later.  If Python-Fu plugin is necessary then I'll install it.

In case Python unable to run on Ubuntu 20.40, I also have Ubuntu 22.04 and Windows11 running here.  Ubuntu 20.04 is running on my daily working PC

Regards

(05-30-2022, 04:53 PM)Krikor Wrote:
(05-30-2022, 02:51 AM)Stephen Liu Wrote:
(05-29-2022, 05:01 PM)Krikor Wrote: Maybe you could try:
1- G'MIC - Repair - Unpurple (default values) - Due to the purple tone of your negatives
2- Colors - Linear Invert
3- Colors - Levels - Auto Input Levels
- snip -

In this case, I think you followed the steps in post #33, so as rich2205 commented, it won't make any difference to re-apply Auto Input Levels, as it's been used before.

Follow the steps on #33

1- G'MIC - Repair - Unpurple (default values)
2- Colors - Linear Invert
3- Colors - Levels - Auto Input Levels

Screenshot attached here.  Still it looks slightly different

Regard

(05-30-2022, 11:09 AM)rich2005 Wrote: One thing that seems to be true for all forums is no-one goes back and reads the old posts Wink  All the suggestions have already been suggested.

Steven Lui wants this:
Quote:My planning is;
1. No setting before and after scanning. Download the negative images on PC
2. Batch Post-editing - with 2/3 steps on GIMP (not too many adjusting).  If possible run command-line operation.

So it is a batch, preferably command line. I am no good with command line. Many of the suggestions are GEGL procedures, not easily scriptable.  Lets have some suggestions for a batch.
I'm not knowledgeable on GEGL

GIMP also has Batch Mode

GIMP Batch Mode
https://www.gimp.org/tutorials/Basic_Batch/

I'm interested to do batch editing running ImageMagick commands
Annotated List of Command-line Options
https://imagemagick.org/script/command-line-options.php

Regards


RE: Filter to enhance the quality of image - Stephen Liu - 05-31-2022

(05-30-2022, 11:09 AM)rich2005 Wrote: One thing that seems to be true for all forums is no-one goes back and reads the old posts Wink  All the suggestions have already been suggested.

Steven Lui wants this:
Quote:My planning is;
1. No setting before and after scanning. Download the negative images on PC
2. Batch Post-editing - with 2/3 steps on GIMP (not too many adjusting).  If possible run command-line operation.

So it is a batch, preferably command line. I am no good with command line. Many of the suggestions are GEGL procedures, not easily scriptable.  Lets have some suggestions for a batch.

I'm not knowlegeable on GEGL

GIMP also has Batch Mode

GIMP Batch Mode
https://www.gimp.org/tutorials/Basic_Batch/

I'm interested to do batch editing running ImageMagick commands

Annotated List of Command-line Options
https://imagemagick.org/script/command-line-options.php

Regards

(05-30-2022, 10:43 AM)sallyanne Wrote: Put your image straight into gimp after putting it onto your computer. Gimp can rotate it for you and also invert the colours if need be.
I also noticed that last photo didn't have an alpha channel and nothing could be done without it.

If as you said you have many photos you can probably open a few at a time as layers; put in a layer group to do the rotate, invert, add alpha channel.
Then save each layer as images again.
Ofnuts may have a script that can do that Wink
Thanks for your advice.

Whether you're referring to;

Chapter 8. Combining Images
Prev    Part II.  How do I Become a GIMP Wizard?
https://docs.gimp.org/2.10/en/gimp-image-combining.html

How to Blend Two Images in GIMP (or even more images)
https://thegimptutorials.com/how-to-blend-two-images/

Regards


RE: Filter to enhance the quality of image - sallyanne - 05-31-2022

Stephen, you do not have to be a gimp wizard. Very few of us are. If you are wanting to do the same thing to all of your images. Put them all in a layer group, (you would have to open them as layers) you can do the different operations just on the layer group and it will affect all layers in it. Then maybe do an extra touchup on each image if needed.


RE: Filter to enhance the quality of image - Stephen Liu - 05-31-2022

(05-31-2022, 07:32 AM)sallyanne Wrote: Stephen, you do not have to be a gimp wizard. Very few of us are. If you are wanting to do the same thing to all of your images. Put them all in a layer group, (you would have  to open them as layers) you can do the different operations just on the layer group and it will affect all layers in it. Then maybe do an extra touchup on each image if needed.

Thanks for your advice.

Regards


RE: Filter to enhance the quality of image - rich2005 - 05-31-2022

@Stephen Liu

Quote:...Neither Python is on Ubuntu 20.04 repo. I don't know whether it can run on Ubuntu 20.04. I can find it out later. If Python-Fu plugin is necessary then I'll install it.

It is possible, I have it installed in kubuntu 20.04 but doubt if you would manage it. 'buntu 22.04 is even worse. Looks like you are stuck with script-fu.

Quote:..I'm not knowledgeable on GEGL..


Unfortunately many of the procedures you require are now GEGL procedures and you will not get in a script-fu.

Quote:..GIMP also has Batch Mode https://www.gimp.org/tutorials/Basic_Batch/

It has but you will need to make your own script-fu to process your requirements (see above re. GEGL). Can you do that ?

Quote:..I'm interested to do batch editing running ImageMagick commands. Annotated List of Command-line Options https://imagemagick.org/script/command-line-options.php

You are not going to run these from Gimp, in batch mode or anything else. Go to the ImageMagick forum, https://github.com/ImageMagick/ImageMagick/discussions explain your requirements and procedure, give them one of your negatives as an example. You might get advice.

best of luck


RE: Filter to enhance the quality of image - Stephen Liu - 05-31-2022

(05-31-2022, 11:07 AM)rich2005 Wrote: @Stephen Liu

Quote:...Neither Python is on Ubuntu 20.04 repo.  I don't know whether it can run on Ubuntu 20.04.  I can find it out later.  If Python-Fu plugin is necessary then I'll install it.

It is possible, I have it installed in kubuntu 20.04 but doubt if you would manage it. 'buntu 22.04 is even worse.  Looks like you are stuck with script-fu.

Quote:..I'm not knowledgeable on GEGL..


Unfortunately many of the procedures you require are now GEGL procedures and you will not get in a script-fu.

Quote:..GIMP also has Batch Mode https://www.gimp.org/tutorials/Basic_Batch/

It has but you will need to make your own script-fu to process your requirements (see above re. GEGL). Can you do that ?

Quote:..I'm interested to do batch editing running ImageMagick commands. Annotated List of Command-line Options  https://imagemagick.org/script/command-line-options.php

You are not going to run these from Gimp, in batch mode or anything else.  Go to the ImageMagick forum, https://github.com/ImageMagick/ImageMagick/discussions  explain your requirements and procedure, give them one of your negatives as an example. You might get advice.

best of luck
Now I have installed python3.9 from source on Ubuntu 22.04 desktop

$ python3.9 --version
Code:
Python 3.9.7

Also I ran "flatpak" to install GIMP 2.10.30

Now Python-Fu Filter installed
(Pls refer to attached screenshot)

Please advise how to use it.  Thanks

Also I'll look at GEGL procedures later

Regards