[
https://jira.duraspace.org/browse/DS-1259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Sherman updated DS-1259:
------------------------------
Attachment: JPEGFilter.java
BrandedPreviewJPEGFilter.java
I addressed this issue in my DSpace 3.0 install by changing the JPEGFilter and
BrandedPreviewJPEGFilter classes (attached)
using methods discussed by Chris Campbell, here:
http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html
I literally pasted the code in and made very few changes to get much better
results. It looks quite shoehorned in (because it is), but it works nicely,
and it doesn't add any dependencies. I set it up as a config option, so I
added the following to my dspace config:
# high quality scaling option. Setting to true can dramatically increase
# image quality, but it will take longer to create thumbnails.
thumbnail.hqscaling = true
# high quality scaling option. Setting to true can dramatically increase
# image quality, but it will take longer to create previews.
webui.preview.hqscaling = true
> use better image downscaling method in filter-media
> ---------------------------------------------------
>
> Key: DS-1259
> URL: https://jira.duraspace.org/browse/DS-1259
> Project: DSpace
> Issue Type: Improvement
> Components: DSpace API
> Reporter: Ivan Masár
> Fix For: 4.0
>
> Attachments: BrandedPreviewJPEGFilter.java, JPEGFilter.java
>
>
> Users are unsatisfied with current quality of images downscaled by
> filter-media. This leads to using workarounds like creating higher resolution
> thumbnails and letting the user's browser downscale the image, which is
> bandwidth-inefficient. The right solution would be to find a better
> downscaling method.
> One proposed option would be to use the Apache-licensed, Maven-dwelling,
> GitHub-using pure-Java Imgscalr library:
> http://www.thebuzzmedia.com/software/imgscalr-java-image-scaling-library/
> The current code that needs to be changed is here:
> https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/JPEGFilter.java#L136
> and in BrandedPreviewJPEGFilter.java
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel