[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-12-10 Thread Christian Appl (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17247135#comment-17247135
 ] 

Christian Appl commented on PDFBOX-4928:


Works like a charm!
I have set the threshold (sorry for the spelling mistake :)) to 0: disabling 
the optimization altogether.
This is a nice simple fix and exactly what I needed!

Thank you very much!

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-12-09 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17246510#comment-17246510
 ] 

Tilman Hausherr commented on PDFBOX-4928:
-

[~capSVD] please test your application with a snapshot:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.22-SNAPSHOT/

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-12-09 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17246475#comment-17246475
 ] 

ASF subversion and git services commented on PDFBOX-4928:
-

Commit 1884244 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1884244 ]

PDFBOX-4928: fix typo

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-12-09 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17246476#comment-17246476
 ] 

ASF subversion and git services commented on PDFBOX-4928:
-

Commit 1884245 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1884245 ]

PDFBOX-4928: fix typo

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-12-09 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17246458#comment-17246458
 ] 

Tilman Hausherr commented on PDFBOX-4928:
-

sigh... I found out that it's spelled "threshold"

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-12-09 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17246442#comment-17246442
 ] 

ASF subversion and git services commented on PDFBOX-4928:
-

Commit 1884241 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1884241 ]

PDFBOX-4928: revert accidental change

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-12-09 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17246434#comment-17246434
 ] 

ASF subversion and git services commented on PDFBOX-4928:
-

Commit 1884239 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1884239 ]

PDFBOX-4928: add fine tuning for quality-optimized downscaling, as suggested by 
Christian Appl

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-12-09 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17246435#comment-17246435
 ] 

ASF subversion and git services commented on PDFBOX-4928:
-

Commit 1884240 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1884240 ]

PDFBOX-4928: add fine tuning for quality-optimized downscaling, as suggested by 
Christian Appl

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-12-08 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17246308#comment-17246308
 ] 

Tilman Hausherr commented on PDFBOX-4928:
-

setImageDownscalingOptimizationThreshhold()

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-10-05 Thread Christian Appl (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17207868#comment-17207868
 ] 

Christian Appl commented on PDFBOX-4928:


Thanks for pushing the issue!

Well... good question...
{{setDownscalingImageOptimizationThreshhold()}}
{{setQualityImageDownscalingThreshhold()}}
{{setImageOptimizationThreshhold()}}
{{setQualityImageRenderingThreshhold()}}

I can't come up with a short one here either...

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-09-21 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17199547#comment-17199547
 ] 

Tilman Hausherr commented on PDFBOX-4928:
-

I'm wondering how to name the method.

{{setThreshholdForQualityImageDownscaling()}} ?

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Fix For: 2.0.22, 3.0.0 PDFBox
>
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-08-03 Thread Christian Appl (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17169789#comment-17169789
 ] 

Christian Appl commented on PDFBOX-4928:


!image-2020-08-03-09-43-37-412.png!

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Attachments: image-2020-08-03-09-43-37-412.png, prescaled.png, 
> unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-08-03 Thread Christian Appl (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17169779#comment-17169779
 ] 

Christian Appl commented on PDFBOX-4928:


A method to set the threshold would be perfect! 

 I tested this with 2.0.20 aswell and I know what you mean, I had similar 
results to PDFBOX-4886. Using 2.0.21 I did not encounter a comparable loss of 
quality, the results are absolutely acceptable.

This really is rather a wish, than an issue.

Some colleagues of mine liked the prescaled version better, others liked the 
unprescaled results. As the perceptions of the results differ in that scale, I 
would simply like to offer an option to enable/disable that feature at will - 
for whatever reason the user would wish to do so and for whatever documents he 
would like to do so.

As far as I am concerned I can't show you bad results. For me both results are 
acceptable.
i.e. when comparing "unprescaled.png" to "prescaled.png" one can spot minor 
detail losses, when really trying hard, while the unprescaled example does 
indeed show some rough edges here and there.

Overall the prescaled image seems to be a tiny bit more blurry.

Some colleagues liked one better, some the other - I personally did not see 
much of a difference at first. When compared to the original image: Both show a 
loss in detail anyway... as scaling methods tend to result in losses.
For me this seems to come down to mere personal preference, whether the one or 
the other is "better". Therefore I would suggest either being able to disable 
the prescaling, or to set the threshold - as you suggested.

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
> Attachments: prescaled.png, unprescaled.png
>
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-08-02 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17169482#comment-17169482
 ] 

Tilman Hausherr commented on PDFBOX-4928:
-

Maybe... I'd like to wait for the soon-to-come release, to see if there's any 
feedback. 2.0.20 didn't go very well, and I hope that 2.0.21 really solves 
these problems. Sadly most people don't test prior to release.

If I understood you correctly that you'd like to set the threshold (that is now 
0.5), what would be the purpose of this? Can you show some PDFs where the new 
results are not as good as 2.0.19 ?

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-07-31 Thread Christian Appl (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17168539#comment-17168539
 ] 

Christian Appl commented on PDFBOX-4928:


Okay, I understand why my suggestion would not work... forget about that.
Back to the start:
Could a method be introduced for the PDFRenderer, that would allow setting an 
option like that?

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-07-31 Thread Christian Appl (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17168534#comment-17168534
 ] 

Christian Appl commented on PDFBOX-4928:


I suggest values like:
VALUE_ALWAYS_PRESCALE
VALUE_AUTO_PRESCALE (default to this: (scaleX < 0.5 || {color:#00}scaleY 
{color}< 0.5))
VALUE_NEVER_PRESCALE

The names are not perfect - but this is how I would imagine a parameter like 
that.

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-07-31 Thread Christian Appl (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17168517#comment-17168517
 ] 

Christian Appl commented on PDFBOX-4928:


Sorry, I will try to explain clearer what I meant. Maybe the following code 
example will help?
{code:java}
File heicPDF = new File("D:\\experiments", "test.pdf");
PDDocument document = PDDocument.load(heicPDF);
try {
   Map renderOptions = new 
HashMap();
   renderOptions.put(RenderingHints.KEY_RENDERING, 
RenderingHints.VALUE_RENDER_QUALITY);
   renderOptions.put(RenderingHints.KEY_INTERPOLATION, 
RenderingHints.VALUE_INTERPOLATION_BICUBIC);
   renderOptions.put(RenderingHints.KEY_QUALITY_RENDERING_METHOD, 
RenderingHints.VALUE_PRESCALE_RENDERING_METHOD);

   PDFRenderer pdfRenderer = new PDFRenderer(document);
   RenderingHints renderingHints = new RenderingHints(renderOptions);
   pdfRenderer.setRenderingHints(renderingHints);

   BufferedImage image = pdfRenderer.renderImageWithDPI(1, 500, ImageType.RGB);
   ImageIO.write(image, "PNG", new File("D:\\experiments", 
"out_disabled_500.png"));
} finally {
   document.close();
}
{code}
My suggestion is the introduction of an additional rendering parameter for the 
quality rendering (KEY_QUALITY_RENDERING_METHOD in this example). Instead of 
(scaleX < 0.5 || {color:#00}scaleY {color}< 0.5) you could check for: 
{color:#00}RenderingHints{color}.{color:#871094}VALUE_PRESCALE_RENDERING_METHOD{color}.equals({color:#871094}graphics{color}.getRenderingHint({color:#00}RenderingHints{color}.{color:#871094}KEY_QUALITY_RENDERING_METHOD{color})

This would enable the user to directly select whether graphics.drawImage() 
shall apply the transformation matrix, or the introduced prescaling shall be 
applied. (to intentionally enable or disable the prescaling.)

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4928) Could the new rendering method of PageDrawer be optional?

2020-07-31 Thread Tilman Hausherr (Jira)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17168435#comment-17168435
 ] 

Tilman Hausherr commented on PDFBOX-4928:
-

You can set rendering hints in PDFRenderer - maybe this is what you'd want? 
Yes, the 0.5 has been set arbitrarily, i.e. by looking at the rendering of the 
test images.

> Could the new rendering method of PageDrawer be optional?
> -
>
> Key: PDFBOX-4928
> URL: https://issues.apache.org/jira/browse/PDFBOX-4928
> Project: PDFBox
>  Issue Type: Wish
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Christian Appl
>Priority: Major
>
> This relates to {color:#008dde}PDFBOX-4516, PDFBOX-4527, PDFBOX-4815, 
> PDFBOX-4886, PDFBOX-4863{color}{color:#008dde}
>  I have tested the new prescaled rendering method for the 
> {color}org.apache.pdfbox.rendering.{color:#008dde}PageDrawer 
> {color:#172b4d}with PDFBox:2.0.21-SNAPSHOT{color}{color} for different 
> images, with different resolutions, target image sizes etc. and compared the 
> results to our old expectations (pre 2.0.20). And I really like it!
>  
>  However it seems to depend on the person's subjective perception (atleast 
> for my tested images), whether I like the old or the new results better. When 
> asking my colleagues, I heard arguments for both sides.
>  
>  Therefore my question is: Could a RenderingHint be introduced to 
> disable/enable this separately and more intentionally, instead of assuming, 
> that the scaling method must always be applied for specific scaling factors?
>  This would allow users to select the scaling method according to their own 
> liking and needs.
>  
>  I can not really find a crystal clear, objective answer, whether the one or 
> the other is "better", therefore I would prefer being able to de/activate it 
> according to my own judgement.
>  As far as I understand, the criterion (scaleX < {color:#1750eb}0.5 {color}|| 
> {color:#00}scaleY {color}< {color:#1750eb}0.5{color}) has been selected 
> rather arbitrarily.( ? )
>  But what if I want to apply it even to images above those scaling factors?
>  What if I want to not apply it to images bellow those scaling factors?
>  What if I want to apply it to Image A, but not to Image C, for some unknown 
> reason?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org