To be frank, DSpace shouldn't be manually scaling images. I used to do this in code of my own too, and abandoned it for this library, which had much better performance and results: http://www.thebuzzmedia.com/software/imgscalr-java-image-scaling-library/
cheers, Steve -- Steve Swinsburg Java Team Leader Information Technology Services Division of Information Building 3K The Australian National University Canberra ACT 0200 Australia T: +61 2 6125 6608 F: +61 2 6125 0449 CRICOS Provider #00120C On 6/09/12 3:18 AM, "helix84" <[email protected]> wrote: >On Wed, Sep 5, 2012 at 7:01 PM, Calloni, Rodrigo <[email protected]> >wrote: >> Thanks helix. I think I expressed myself in a wrong way. >> >> I think you got the idea of what I needed here: >> >> "An alternative to make a thumbnail look better (as opposed to >>increasing its resolution) would be to use a better downsampling method. >>But I didn't investigate if there are any other possibilities in the >>filter-media framework." > >If you want to investigate improving downsampling quality, in the >mentioned BrandedPreviewJPEGFilter, this is where it takes place: > >https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/ >dspace/app/mediafilter/BrandedPreviewJPEGFilter.java#L137 > >For starters, here's some pointers on how to change the sampling method: > >http://stackoverflow.com/questions/4216123/how-to-scale-a-bufferedimage > >If you find out that downsampling quality indeed can be improved, be >sure to share it back with us! > >One thing I'm not sure about is which filter is used when (I'd guess >JPEGFilter, but BrandedPreviewJPEGFilter uses the >webui.preview.maxwidth/maxheight properties), so you may want to >figure that out, too. > >> Anyway at this point we may see if by making the image larger and use >>CSS to make it show small in some pages (results list) and bigger in >>others (full view of item). > >So you need both better quality and two thumbnail sizes? > >Regards, >~~helix84 > >-------------------------------------------------------------------------- >---- >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >DSpace-tech mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

