Announcement

Collapse
No announcement yet.

change background color in selected rectangle

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Solved change background color in selected rectangle

    I have a jpg with a clearly defined rectangular section containing black writing on a red background. The red is too dark, so the writing is hard to read. Another part of the jpg has the same dark red and a lighter version of the same color, which would solve the problem. I have gone through the procedure, with a sample of the original color and a sample of the lighter "new" color, but I am totally unable to change the color in the selected rectangle. Nothing happens. Am I missing a plug-in, ot doing something wrong?

    #2
    Try Colour Corrections (Shift+G). That works on the selected area.
    Before you post ... Edit your profile • IrfanView 4.62 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

    Comment


      #3
      In the color picker make sure the color you are replacing is in the background and the new color is in the forground, Notice in the screenshot below the selected area is the only area changed.

      Click image for larger version

Name:	Capture_20231201-163957.jpg
Views:	336
Size:	117.8 KB
ID:	98250

      Comment


        #4
        I cannot access "select" any more. I seem to be stuck in "crop". I do not want to crop anything, just to select an area of an image, which I was able to do a couple of days ago but no longer.

        Comment


          #5
          What happens when you click and drag a selection area rectangle?

          Comment


            #6
            Obsolete message.
            Last edited by oldtimer; 05.12.2023, 07:08 PM.

            Comment


              #7
              Obsolete message.
              Last edited by oldtimer; 05.12.2023, 07:08 PM.

              Comment


                #8
                Obsolete message
                Last edited by oldtimer; 05.12.2023, 07:07 PM.

                Comment


                  #9
                  Obsolete message
                  Last edited by oldtimer; 05.12.2023, 07:06 PM.

                  Comment


                    #10
                    I continue to make progress but cannot achieve success. Currently I am free of the "crop" prison. I have the image displayed and the rectangle in question selected. I have the "Replace color" option up. In the "Source color" window, the current background color of the rectangle (RBG 255, 24, 26, Hex FF181A) is displayed. In the "New color" the background color I want (RGB 226, 196, 176, Hex E2C4B0) is displayed. This is exactly what I need. I click on "Apply to current image"--and nothing happens. I cannot get it to make the replacement. What am I missing?

                    Comment


                      #11
                      I mean the IrfanView Paint (Edit/Show paint dialog) or F12. Then you paint the area you want to replace color. If you set the Width very large you can paint the whole image at once. By paint I mean hit left click on area to change. The selection limits the area that can be painted.

                      Comment


                        #12
                        I am still unable unable to change the background color of the rectangle in the jpg image. I have the image in Irfanview, free of the “crop” trap it was in several days ago, and have selected the image and made the writing in it legible by minimizing the saturation of the original background color. But the resultant red clashes with the colors of the image. Clicking on “Image”, I find “Replace color” in the dropdown menu. This sounds like just what I want. I have successfully selected the rectangle. I have put the current (low saturation) color in the “Replace source color” window, and color I want, taken from the image itself, in the “with new color” window.
                        The Old Color is RGB 255, 24, 26, Hex FF181A.
                        The New Color is RGB 226, 196, 176, Hex E2C4B0.
                        I click on “Apply to current image”. Nothing happens.
                        I need it to happen. What am I missing?
                        ?

                        Comment


                          #13
                          I tried "replace color" with a selection. By choosing the source color directly on the image with left-click I was able to do a replacement only inside the selected area by clicking "Apply to current image" or "OK". Try selecting your "Old Color" directly on the image with the mouse left-click. Make sure "Tolerance value" is set >0.

                          Click image for larger version

Name:	Capture_20231206-153029.jpg
Views:	67
Size:	139.2 KB
ID:	98268

                          Comment


                            #14
                            I followed exactly the precedure described immediately above by IrfanUserGuyxyx. It did produce one change: the“old color” was restored to the original color, replacing the minimum-saturation version. This makes no difference to me, as neither is what I want. But the desired change, old color to new, still escapes me. I press Apply to Image, and once agein, nothing happens.
                            Last edited by oldtimer; 08.12.2023, 08:33 AM.

                            Comment


                              #15
                              What Plugins do I need for this operation? Could I be missing a necessary plugin? And when I download a plugin, sys asks what program I want to use to open it, and displays a useless meny of programs designed to open some specific other kind of file. I don't know what to say.,
                              Last edited by oldtimer; 07.12.2023, 07:15 AM.

                              Comment

                              Working...
                              X