Currently IV does not allow the user full control of the pixel coordinates of a selection rectangle. It may appear to do so, as no visible complaint will ever result from entering any coordinates (by which I mean X, Y, Width, Height), but the coordinates accepted internally and used by IV in the processing of that selection rectangle will often differ by single pixel offsets either way. This error can also be inspected directly by the user, by simply pressing Shift-C to re-open the selection dialog, which will then display the incorrect coordinates accepted by IV. But all attempts to correct this error will again produce exactly the same error...
In many cases the effect of this error will be invisible, but in other cases it will produce glaringly ugly results.
Just as a simple example, consider the following situation. I am composing a picture from several rectangular elements, including the base picture to contain the others. Let's say that this picture contains an ugly section in a glaring red colour, which I want to cover up by pasting in two rectangular logos cut out from other pictures earlier. Those must be fitted together with pixel precision so that neither loses any of its edge details and so that none of the glaring red of the original picture shines through at the 'joint'.
For this kind of processing it is a 'toss-up' whether IrfanView will be able to do the job correctly, with the odds going against success, mainly because each rectangle has four coordinates which IV must 'accept' unchanged to ensure a perfect fit. Fortunately some of the corner coordinates don't really affect this kind of 'joint', so they don't matter then, but unpleasantly often it is the corners that do matter which IrfanView fails to accept.
For all kinds of cut-paste work it is crucial that the user can control all four coordinates of a selection rectangle, without any 'censorship' by the program.
I believe that the 'censorship' which currently occurs is just a side effect of some scaling work done to present the picture on screen, but it is completely unacceptable to allow such factors to also affect the processing of the picture data. For those operations the precise pixel coordinates entered by the user (when doing it by keyboard entry in Shift-C dialog, rather than by mouse) must always be accepted without any changes whatever, except for the obvious one of limiting the work rectangle to the current canvas size (which should always be done).
Edit:
Further experiments have proven that it is the current picture display scaling which determines whether selection coordinates as entered in numeric form by user will be modified or not, by methods similar to those used in scaling coordinates entered by mouse movements. Displaying a picture in 1:1 unscaled mode (Ctrl-H) will eliminate this unwanted coordinate 'rounding', but at cost of making it very hard to work with high-resolution pictures.
My conclusion remains unchanged:
IrfanView needs to be modified to accept user-entered selection coordinates without 'rounding' them either way, regardless of the current display scaling.
Best regards: dlanor
In many cases the effect of this error will be invisible, but in other cases it will produce glaringly ugly results.
Just as a simple example, consider the following situation. I am composing a picture from several rectangular elements, including the base picture to contain the others. Let's say that this picture contains an ugly section in a glaring red colour, which I want to cover up by pasting in two rectangular logos cut out from other pictures earlier. Those must be fitted together with pixel precision so that neither loses any of its edge details and so that none of the glaring red of the original picture shines through at the 'joint'.
For this kind of processing it is a 'toss-up' whether IrfanView will be able to do the job correctly, with the odds going against success, mainly because each rectangle has four coordinates which IV must 'accept' unchanged to ensure a perfect fit. Fortunately some of the corner coordinates don't really affect this kind of 'joint', so they don't matter then, but unpleasantly often it is the corners that do matter which IrfanView fails to accept.
For all kinds of cut-paste work it is crucial that the user can control all four coordinates of a selection rectangle, without any 'censorship' by the program.
I believe that the 'censorship' which currently occurs is just a side effect of some scaling work done to present the picture on screen, but it is completely unacceptable to allow such factors to also affect the processing of the picture data. For those operations the precise pixel coordinates entered by the user (when doing it by keyboard entry in Shift-C dialog, rather than by mouse) must always be accepted without any changes whatever, except for the obvious one of limiting the work rectangle to the current canvas size (which should always be done).
Edit:
Further experiments have proven that it is the current picture display scaling which determines whether selection coordinates as entered in numeric form by user will be modified or not, by methods similar to those used in scaling coordinates entered by mouse movements. Displaying a picture in 1:1 unscaled mode (Ctrl-H) will eliminate this unwanted coordinate 'rounding', but at cost of making it very hard to work with high-resolution pictures.
My conclusion remains unchanged:
IrfanView needs to be modified to accept user-entered selection coordinates without 'rounding' them either way, regardless of the current display scaling.
Best regards: dlanor
Comment