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

Reply via email to