Re: [Dspace-tech] PDF Thumbnail Resolution

2013-11-27 Thread helix84
On Wed, Nov 27, 2013 at 11:35 PM, Jason Sherman  wrote:
> Okay, I went ahead and created a pull request and a jira issue:

Great, thanks, Jason!

If some of you do test, please leave a report in Jira comments to let
us know whether it works or any changes are needed.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] PDF Thumbnail Resolution

2013-11-27 Thread Jason Sherman
Okay, I went ahead and created a pull request and a jira issue:

https://jira.duraspace.org/browse/DS-1812
https://github.com/DSpace/DSpace/pull/409



On Wed, Nov 27, 2013 at 9:19 AM, Jason Sherman  wrote:

> Alan,
>
> You can see what  I've got so far here:
>
> https://github.com/jsnshrmn/DSpace/raw/master/dspace-api/src/main/java/org/dspace/app/mediafilter/XPDF2Thumbnail.java
> Testing is definitely something it could use!
>
>
> On Tue, Nov 26, 2013 at 11:21 PM, Alan Orth  wrote:
>
>> Jason,
>>
>> To clarify, you sent Scott a solution for PDF thumbnails?  I'd be very
>> interested in testing it as well. :)  We're still testing XPDF and
>> Terry's Ghostscript solution for PDF thumbnails so I'd love to compare.
>>
>> Cheers,
>>
>> Alan
>>
>> On 11/27/2013 02:00 AM, Jason Sherman wrote:
>> > I sent Scott a solution based of my jpeg thumbnail off-list for
>> testing.  I
>> > suppose I should have kept it on list so that everyone was on the same
>> > page.  Live and learn!  I can share my version if anyone is interested,
>> but
>> > it sounds like Terry's solution does the job.
>> >
>> >
>> > On Tue, Nov 26, 2013 at 2:13 PM, Alan Orth  wrote:
>> >
>> >> Terry,
>> >>
>> >> That's very interesting.  I just tried your code and it works great, I
>> >> compared it to the XPDF method as well as our the manual thumbnailing
>> >> we've been using (embarassingly) for a few years[0].  The colors in the
>> >> PDF I used as an example are a bit exaggerated, but it's not too bad
>> and
>> >> the thumbnail is much more crisp.
>> >>
>> >> BTW, I made a pull request[1] on your repo to add some installation /
>> >> configuration instructions to your README.md.
>> >>
>> >> Cheers!
>> >>
>> >> Alan
>> >>
>> >> [0] http://i.imgur.com/xzH5tcL.png
>> >> [1]
>> >>
>> >>
>> https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails/pull/1
>> >>
>> >> On 10/15/2013 06:34 PM, Terry Brady wrote:
>> >>> We had a similar need.  I created a module to build thumbnails with
>> >>> ImageMagick and Ghost Script.
>> >>>
>> >>> If this sounds useful, you can see the code here.
>> >>>
>> >>>
>> >>
>> https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails
>> >>>
>> >>> Terry
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> On Tue, Oct 15, 2013 at 11:08 AM, RENTON Scott > >>> wrote:
>> >>>
>>  Thanks folks. I've emailed Jason as you can probably see!
>> 
>>  Scott
>> 
>>  Scott Renton
>>  Systems Developer, Library & University Collections
>>  24 Buccleuch Place, 2nd Floor Right
>>  tel: 515219
>> 
>> 
>> 
>> 
>> 
>> 
>>  On 15/10/2013 16:02, "RENTON Scott"  wrote:
>> 
>> > Thanks Ivan
>> >
>> > I will do- in fact I will mail him now before I forget!
>> >
>> > Cheers
>> > Scott
>> >
>> > Scott Renton
>> > Systems Developer, Library & University Collections
>> > 24 Buccleuch Place, 2nd Floor Right
>> > tel: 515219
>> >
>> >
>> >
>> >
>> >
>> >
>> > On 15/10/2013 16:01, "helix84"  wrote:
>> >
>> >> On Tue, Oct 15, 2013 at 4:31 PM, RENTON Scott <
>> scott.ren...@ed.ac.uk>
>> >> wrote:
>> >>> Yeah, that's the code I'm using. I'm not too surprised if the JPEG
>> >> work
>> >>> is only for images- I would say the PDF thumbnails work is quite
>> an
>> >>> obscure requirement. Anyway, if this is not changing, I would be
>> >> happy
>> >>> to tell the users that this is the best they can get for the
>> moment;
>> >>> they may decide not to implement, but that's up to them!
>> >>
>> >> Sorry about the inaccurate first answer.
>> >>
>> >> I see that both the fixed JPEGFilter/BrandedPreviewJPEGFilter and
>> your
>> >> XPDF2Thumbnail use the awt libraries to manipulate bitmaps.
>> Therefore
>> >> it might be possible to apply the same fixes to XPDF2Thumbnail as
>> were
>> >> applied to the JPEG filters. Try asking Jason Sherman
>> >>  about it, he's the author of the fixes and
>> might
>> >> be willing to do it for PDF, too.
>> >>
>> >>
>> >> Regards,
>> >> ~~helix84
>> >>
>> >> Compulsory reading: DSpace Mailing List Etiquette
>> >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>> >
>> 
>> 
>>  --
>>  The University of Edinburgh is a charitable body, registered in
>>  Scotland, with registration number SC005336.
>> 
>> 
>> 
>> 
>> >>
>> --
>>  October Webinars: Code for Performance
>>  Free Intel webinars can help you accelerate application performance.
>>  Explore tips for MPI, OpenMP, advanced profiling, and more. Get the
>> most
>>  from
>>  the latest Intel processors and coprocessors. See abstracts and
>> >> register >
>> 
>> >>
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>  

Re: [Dspace-tech] PDF Thumbnail Resolution

2013-11-27 Thread Jason Sherman
Alan,

You can see what  I've got so far here:
https://github.com/jsnshrmn/DSpace/raw/master/dspace-api/src/main/java/org/dspace/app/mediafilter/XPDF2Thumbnail.java
Testing is definitely something it could use!


On Tue, Nov 26, 2013 at 11:21 PM, Alan Orth  wrote:

> Jason,
>
> To clarify, you sent Scott a solution for PDF thumbnails?  I'd be very
> interested in testing it as well. :)  We're still testing XPDF and
> Terry's Ghostscript solution for PDF thumbnails so I'd love to compare.
>
> Cheers,
>
> Alan
>
> On 11/27/2013 02:00 AM, Jason Sherman wrote:
> > I sent Scott a solution based of my jpeg thumbnail off-list for testing.
>  I
> > suppose I should have kept it on list so that everyone was on the same
> > page.  Live and learn!  I can share my version if anyone is interested,
> but
> > it sounds like Terry's solution does the job.
> >
> >
> > On Tue, Nov 26, 2013 at 2:13 PM, Alan Orth  wrote:
> >
> >> Terry,
> >>
> >> That's very interesting.  I just tried your code and it works great, I
> >> compared it to the XPDF method as well as our the manual thumbnailing
> >> we've been using (embarassingly) for a few years[0].  The colors in the
> >> PDF I used as an example are a bit exaggerated, but it's not too bad and
> >> the thumbnail is much more crisp.
> >>
> >> BTW, I made a pull request[1] on your repo to add some installation /
> >> configuration instructions to your README.md.
> >>
> >> Cheers!
> >>
> >> Alan
> >>
> >> [0] http://i.imgur.com/xzH5tcL.png
> >> [1]
> >>
> >>
> https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails/pull/1
> >>
> >> On 10/15/2013 06:34 PM, Terry Brady wrote:
> >>> We had a similar need.  I created a module to build thumbnails with
> >>> ImageMagick and Ghost Script.
> >>>
> >>> If this sounds useful, you can see the code here.
> >>>
> >>>
> >>
> https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails
> >>>
> >>> Terry
> >>>
> >>>
> >>>
> >>>
> >>> On Tue, Oct 15, 2013 at 11:08 AM, RENTON Scott  >>> wrote:
> >>>
>  Thanks folks. I've emailed Jason as you can probably see!
> 
>  Scott
> 
>  Scott Renton
>  Systems Developer, Library & University Collections
>  24 Buccleuch Place, 2nd Floor Right
>  tel: 515219
> 
> 
> 
> 
> 
> 
>  On 15/10/2013 16:02, "RENTON Scott"  wrote:
> 
> > Thanks Ivan
> >
> > I will do- in fact I will mail him now before I forget!
> >
> > Cheers
> > Scott
> >
> > Scott Renton
> > Systems Developer, Library & University Collections
> > 24 Buccleuch Place, 2nd Floor Right
> > tel: 515219
> >
> >
> >
> >
> >
> >
> > On 15/10/2013 16:01, "helix84"  wrote:
> >
> >> On Tue, Oct 15, 2013 at 4:31 PM, RENTON Scott <
> scott.ren...@ed.ac.uk>
> >> wrote:
> >>> Yeah, that's the code I'm using. I'm not too surprised if the JPEG
> >> work
> >>> is only for images- I would say the PDF thumbnails work is quite an
> >>> obscure requirement. Anyway, if this is not changing, I would be
> >> happy
> >>> to tell the users that this is the best they can get for the
> moment;
> >>> they may decide not to implement, but that's up to them!
> >>
> >> Sorry about the inaccurate first answer.
> >>
> >> I see that both the fixed JPEGFilter/BrandedPreviewJPEGFilter and
> your
> >> XPDF2Thumbnail use the awt libraries to manipulate bitmaps.
> Therefore
> >> it might be possible to apply the same fixes to XPDF2Thumbnail as
> were
> >> applied to the JPEG filters. Try asking Jason Sherman
> >>  about it, he's the author of the fixes and
> might
> >> be willing to do it for PDF, too.
> >>
> >>
> >> Regards,
> >> ~~helix84
> >>
> >> Compulsory reading: DSpace Mailing List Etiquette
> >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >
> 
> 
>  --
>  The University of Edinburgh is a charitable body, registered in
>  Scotland, with registration number SC005336.
> 
> 
> 
> 
> >>
> --
>  October Webinars: Code for Performance
>  Free Intel webinars can help you accelerate application performance.
>  Explore tips for MPI, OpenMP, advanced profiling, and more. Get the
> most
>  from
>  the latest Intel processors and coprocessors. See abstracts and
> >> register >
> 
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>  ___
>  DSpace-tech mailing list
>  DSpace-tech@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/dspace-tech
>  List Etiquette:
>  https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> 
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> -

Re: [Dspace-tech] PDF Thumbnail Resolution

2013-11-26 Thread Alan Orth
Jason,

To clarify, you sent Scott a solution for PDF thumbnails?  I'd be very
interested in testing it as well. :)  We're still testing XPDF and
Terry's Ghostscript solution for PDF thumbnails so I'd love to compare.

Cheers,

Alan

On 11/27/2013 02:00 AM, Jason Sherman wrote:
> I sent Scott a solution based of my jpeg thumbnail off-list for testing.  I
> suppose I should have kept it on list so that everyone was on the same
> page.  Live and learn!  I can share my version if anyone is interested, but
> it sounds like Terry's solution does the job.
> 
> 
> On Tue, Nov 26, 2013 at 2:13 PM, Alan Orth  wrote:
> 
>> Terry,
>>
>> That's very interesting.  I just tried your code and it works great, I
>> compared it to the XPDF method as well as our the manual thumbnailing
>> we've been using (embarassingly) for a few years[0].  The colors in the
>> PDF I used as an example are a bit exaggerated, but it's not too bad and
>> the thumbnail is much more crisp.
>>
>> BTW, I made a pull request[1] on your repo to add some installation /
>> configuration instructions to your README.md.
>>
>> Cheers!
>>
>> Alan
>>
>> [0] http://i.imgur.com/xzH5tcL.png
>> [1]
>>
>> https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails/pull/1
>>
>> On 10/15/2013 06:34 PM, Terry Brady wrote:
>>> We had a similar need.  I created a module to build thumbnails with
>>> ImageMagick and Ghost Script.
>>>
>>> If this sounds useful, you can see the code here.
>>>
>>>
>> https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails
>>>
>>> Terry
>>>
>>>
>>>
>>>
>>> On Tue, Oct 15, 2013 at 11:08 AM, RENTON Scott >> wrote:
>>>
 Thanks folks. I've emailed Jason as you can probably see!

 Scott

 Scott Renton
 Systems Developer, Library & University Collections
 24 Buccleuch Place, 2nd Floor Right
 tel: 515219






 On 15/10/2013 16:02, "RENTON Scott"  wrote:

> Thanks Ivan
>
> I will do- in fact I will mail him now before I forget!
>
> Cheers
> Scott
>
> Scott Renton
> Systems Developer, Library & University Collections
> 24 Buccleuch Place, 2nd Floor Right
> tel: 515219
>
>
>
>
>
>
> On 15/10/2013 16:01, "helix84"  wrote:
>
>> On Tue, Oct 15, 2013 at 4:31 PM, RENTON Scott 
>> wrote:
>>> Yeah, that's the code I'm using. I'm not too surprised if the JPEG
>> work
>>> is only for images- I would say the PDF thumbnails work is quite an
>>> obscure requirement. Anyway, if this is not changing, I would be
>> happy
>>> to tell the users that this is the best they can get for the moment;
>>> they may decide not to implement, but that's up to them!
>>
>> Sorry about the inaccurate first answer.
>>
>> I see that both the fixed JPEGFilter/BrandedPreviewJPEGFilter and your
>> XPDF2Thumbnail use the awt libraries to manipulate bitmaps. Therefore
>> it might be possible to apply the same fixes to XPDF2Thumbnail as were
>> applied to the JPEG filters. Try asking Jason Sherman
>>  about it, he's the author of the fixes and might
>> be willing to do it for PDF, too.
>>
>>
>> Regards,
>> ~~helix84
>>
>> Compulsory reading: DSpace Mailing List Etiquette
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>


 --
 The University of Edinburgh is a charitable body, registered in
 Scotland, with registration number SC005336.




>> --
 October Webinars: Code for Performance
 Free Intel webinars can help you accelerate application performance.
 Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
 from
 the latest Intel processors and coprocessors. See abstracts and
>> register >

>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette:
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

>>>
>>>
>>>
>>>
>>>
>>>
>> --
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>> from
>>> the latest Intel processors and coprocessors. See abstracts and register
>>>
>>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>
>>>
>>>
>>> ___
>>> DSpace-tech mailing list
>>> DSpace-tech@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>> List Etiquette:
>> https://wiki.duraspace.org/

Re: [Dspace-tech] PDF Thumbnail Resolution

2013-11-26 Thread helix84
On Wed, Nov 27, 2013 at 12:00 AM, Jason Sherman  wrote:
> I sent Scott a solution based of my jpeg thumbnail off-list for testing.  I
> suppose I should have kept it on list so that everyone was on the same page.
> Live and learn!  I can share my version if anyone is interested, but it
> sounds like Terry's solution does the job.

Hi Jason, that's great. Please, submit a Pull request. You already
know the ropes. Thanks!


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] PDF Thumbnail Resolution

2013-11-26 Thread Jason Sherman
I sent Scott a solution based of my jpeg thumbnail off-list for testing.  I
suppose I should have kept it on list so that everyone was on the same
page.  Live and learn!  I can share my version if anyone is interested, but
it sounds like Terry's solution does the job.


On Tue, Nov 26, 2013 at 2:13 PM, Alan Orth  wrote:

> Terry,
>
> That's very interesting.  I just tried your code and it works great, I
> compared it to the XPDF method as well as our the manual thumbnailing
> we've been using (embarassingly) for a few years[0].  The colors in the
> PDF I used as an example are a bit exaggerated, but it's not too bad and
> the thumbnail is much more crisp.
>
> BTW, I made a pull request[1] on your repo to add some installation /
> configuration instructions to your README.md.
>
> Cheers!
>
> Alan
>
> [0] http://i.imgur.com/xzH5tcL.png
> [1]
>
> https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails/pull/1
>
> On 10/15/2013 06:34 PM, Terry Brady wrote:
> > We had a similar need.  I created a module to build thumbnails with
> > ImageMagick and Ghost Script.
> >
> > If this sounds useful, you can see the code here.
> >
> >
> https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails
> >
> > Terry
> >
> >
> >
> >
> > On Tue, Oct 15, 2013 at 11:08 AM, RENTON Scott  >wrote:
> >
> >> Thanks folks. I've emailed Jason as you can probably see!
> >>
> >> Scott
> >>
> >> Scott Renton
> >> Systems Developer, Library & University Collections
> >> 24 Buccleuch Place, 2nd Floor Right
> >> tel: 515219
> >>
> >>
> >>
> >>
> >>
> >>
> >> On 15/10/2013 16:02, "RENTON Scott"  wrote:
> >>
> >>> Thanks Ivan
> >>>
> >>> I will do- in fact I will mail him now before I forget!
> >>>
> >>> Cheers
> >>> Scott
> >>>
> >>> Scott Renton
> >>> Systems Developer, Library & University Collections
> >>> 24 Buccleuch Place, 2nd Floor Right
> >>> tel: 515219
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> On 15/10/2013 16:01, "helix84"  wrote:
> >>>
>  On Tue, Oct 15, 2013 at 4:31 PM, RENTON Scott 
>  wrote:
> > Yeah, that's the code I'm using. I'm not too surprised if the JPEG
> work
> > is only for images- I would say the PDF thumbnails work is quite an
> > obscure requirement. Anyway, if this is not changing, I would be
> happy
> > to tell the users that this is the best they can get for the moment;
> > they may decide not to implement, but that's up to them!
> 
>  Sorry about the inaccurate first answer.
> 
>  I see that both the fixed JPEGFilter/BrandedPreviewJPEGFilter and your
>  XPDF2Thumbnail use the awt libraries to manipulate bitmaps. Therefore
>  it might be possible to apply the same fixes to XPDF2Thumbnail as were
>  applied to the JPEG filters. Try asking Jason Sherman
>   about it, he's the author of the fixes and might
>  be willing to do it for PDF, too.
> 
> 
>  Regards,
>  ~~helix84
> 
>  Compulsory reading: DSpace Mailing List Etiquette
>  https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >>>
> >>
> >>
> >> --
> >> The University of Edinburgh is a charitable body, registered in
> >> Scotland, with registration number SC005336.
> >>
> >>
> >>
> >>
> --
> >> October Webinars: Code for Performance
> >> Free Intel webinars can help you accelerate application performance.
> >> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> >> from
> >> the latest Intel processors and coprocessors. See abstracts and
> register >
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> >> ___
> >> DSpace-tech mailing list
> >> DSpace-tech@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> >> List Etiquette:
> >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >>
> >
> >
> >
> >
> >
> >
> --
> > October Webinars: Code for Performance
> > Free Intel webinars can help you accelerate application performance.
> > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> > the latest Intel processors and coprocessors. See abstracts and register
> >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> >
> >
> >
> > ___
> > DSpace-tech mailing list
> > DSpace-tech@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> > List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >
>
>
> --
> Alan Orth
> alan.o...@gmail.com
> http://alaninkenya.org
> http://mjanja.co.ke
> "I have always wished for my computer to be as easy to use as my
> telephone; my wish has come true because I can no longer figure out how
> to use my telephone." -Bjarne Stroustrup, inventor o

Re: [Dspace-tech] PDF Thumbnail Resolution

2013-11-26 Thread Alan Orth
Terry,

That's very interesting.  I just tried your code and it works great, I
compared it to the XPDF method as well as our the manual thumbnailing
we've been using (embarassingly) for a few years[0].  The colors in the
PDF I used as an example are a bit exaggerated, but it's not too bad and
the thumbnail is much more crisp.

BTW, I made a pull request[1] on your repo to add some installation /
configuration instructions to your README.md.

Cheers!

Alan

[0] http://i.imgur.com/xzH5tcL.png
[1]
https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails/pull/1

On 10/15/2013 06:34 PM, Terry Brady wrote:
> We had a similar need.  I created a module to build thumbnails with
> ImageMagick and Ghost Script.
> 
> If this sounds useful, you can see the code here.
> 
> https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails
> 
> Terry
> 
> 
> 
> 
> On Tue, Oct 15, 2013 at 11:08 AM, RENTON Scott wrote:
> 
>> Thanks folks. I've emailed Jason as you can probably see!
>>
>> Scott
>>
>> Scott Renton
>> Systems Developer, Library & University Collections
>> 24 Buccleuch Place, 2nd Floor Right
>> tel: 515219
>>
>>
>>
>>
>>
>>
>> On 15/10/2013 16:02, "RENTON Scott"  wrote:
>>
>>> Thanks Ivan
>>>
>>> I will do- in fact I will mail him now before I forget!
>>>
>>> Cheers
>>> Scott
>>>
>>> Scott Renton
>>> Systems Developer, Library & University Collections
>>> 24 Buccleuch Place, 2nd Floor Right
>>> tel: 515219
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 15/10/2013 16:01, "helix84"  wrote:
>>>
 On Tue, Oct 15, 2013 at 4:31 PM, RENTON Scott 
 wrote:
> Yeah, that's the code I'm using. I'm not too surprised if the JPEG work
> is only for images- I would say the PDF thumbnails work is quite an
> obscure requirement. Anyway, if this is not changing, I would be happy
> to tell the users that this is the best they can get for the moment;
> they may decide not to implement, but that's up to them!

 Sorry about the inaccurate first answer.

 I see that both the fixed JPEGFilter/BrandedPreviewJPEGFilter and your
 XPDF2Thumbnail use the awt libraries to manipulate bitmaps. Therefore
 it might be possible to apply the same fixes to XPDF2Thumbnail as were
 applied to the JPEG filters. Try asking Jason Sherman
  about it, he's the author of the fixes and might
 be willing to do it for PDF, too.


 Regards,
 ~~helix84

 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>>
>>
>>
>> --
>> The University of Edinburgh is a charitable body, registered in
>> Scotland, with registration number SC005336.
>>
>>
>>
>> --
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>> from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> List Etiquette:
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
> 
> 
> 
> 
> 
> --
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> 
> 
> 
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> 


-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my
telephone; my wish has come true because I can no longer figure out how
to use my telephone." -Bjarne Stroustrup, inventor of C++
GPG Public Key: 0xf92c4bd91084bb5de14e20be9470dd588dd1026c



signature.asc
Description: OpenPGP digital signature
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk_

Re: [Dspace-tech] PDF Thumbnail Resolution

2013-10-15 Thread Terry Brady
We had a similar need.  I created a module to build thumbnails with
ImageMagick and Ghost Script.

If this sounds useful, you can see the code here.

https://github.com/Georgetown-University-Libraries/DSpaceImageMagickThumnails

Terry




On Tue, Oct 15, 2013 at 11:08 AM, RENTON Scott wrote:

> Thanks folks. I've emailed Jason as you can probably see!
>
> Scott
>
> Scott Renton
> Systems Developer, Library & University Collections
> 24 Buccleuch Place, 2nd Floor Right
> tel: 515219
>
>
>
>
>
>
> On 15/10/2013 16:02, "RENTON Scott"  wrote:
>
> >Thanks Ivan
> >
> >I will do- in fact I will mail him now before I forget!
> >
> >Cheers
> >Scott
> >
> >Scott Renton
> >Systems Developer, Library & University Collections
> >24 Buccleuch Place, 2nd Floor Right
> >tel: 515219
> >
> >
> >
> >
> >
> >
> >On 15/10/2013 16:01, "helix84"  wrote:
> >
> >>On Tue, Oct 15, 2013 at 4:31 PM, RENTON Scott 
> >>wrote:
> >>> Yeah, that's the code I'm using. I'm not too surprised if the JPEG work
> >>>is only for images- I would say the PDF thumbnails work is quite an
> >>>obscure requirement. Anyway, if this is not changing, I would be happy
> >>>to tell the users that this is the best they can get for the moment;
> >>>they may decide not to implement, but that's up to them!
> >>
> >>Sorry about the inaccurate first answer.
> >>
> >>I see that both the fixed JPEGFilter/BrandedPreviewJPEGFilter and your
> >>XPDF2Thumbnail use the awt libraries to manipulate bitmaps. Therefore
> >>it might be possible to apply the same fixes to XPDF2Thumbnail as were
> >>applied to the JPEG filters. Try asking Jason Sherman
> >> about it, he's the author of the fixes and might
> >>be willing to do it for PDF, too.
> >>
> >>
> >>Regards,
> >>~~helix84
> >>
> >>Compulsory reading: DSpace Mailing List Etiquette
> >>https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
>
> --
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>



-- 
Terry Brady
Applications Programmer Analyst
Lauinger Information Technology
202-687-7053
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] PDF Thumbnail Resolution

2013-10-15 Thread RENTON Scott
Thanks Ivan

I will do- in fact I will mail him now before I forget!

Cheers
Scott

Scott Renton
Systems Developer, Library & University Collections
24 Buccleuch Place, 2nd Floor Right
tel: 515219






On 15/10/2013 16:01, "helix84"  wrote:

>On Tue, Oct 15, 2013 at 4:31 PM, RENTON Scott 
>wrote:
>> Yeah, that's the code I'm using. I'm not too surprised if the JPEG work
>>is only for images- I would say the PDF thumbnails work is quite an
>>obscure requirement. Anyway, if this is not changing, I would be happy
>>to tell the users that this is the best they can get for the moment;
>>they may decide not to implement, but that's up to them!
>
>Sorry about the inaccurate first answer.
>
>I see that both the fixed JPEGFilter/BrandedPreviewJPEGFilter and your
>XPDF2Thumbnail use the awt libraries to manipulate bitmaps. Therefore
>it might be possible to apply the same fixes to XPDF2Thumbnail as were
>applied to the JPEG filters. Try asking Jason Sherman
> about it, he's the author of the fixes and might
>be willing to do it for PDF, too.
>
>
>Regards,
>~~helix84
>
>Compulsory reading: DSpace Mailing List Etiquette
>https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] PDF Thumbnail Resolution

2013-10-15 Thread RENTON Scott
Thanks folks. I've emailed Jason as you can probably see!

Scott

Scott Renton
Systems Developer, Library & University Collections
24 Buccleuch Place, 2nd Floor Right
tel: 515219






On 15/10/2013 16:02, "RENTON Scott"  wrote:

>Thanks Ivan
>
>I will do- in fact I will mail him now before I forget!
>
>Cheers
>Scott
>
>Scott Renton
>Systems Developer, Library & University Collections
>24 Buccleuch Place, 2nd Floor Right
>tel: 515219
>
>
>
>
>
>
>On 15/10/2013 16:01, "helix84"  wrote:
>
>>On Tue, Oct 15, 2013 at 4:31 PM, RENTON Scott 
>>wrote:
>>> Yeah, that's the code I'm using. I'm not too surprised if the JPEG work
>>>is only for images- I would say the PDF thumbnails work is quite an
>>>obscure requirement. Anyway, if this is not changing, I would be happy
>>>to tell the users that this is the best they can get for the moment;
>>>they may decide not to implement, but that's up to them!
>>
>>Sorry about the inaccurate first answer.
>>
>>I see that both the fixed JPEGFilter/BrandedPreviewJPEGFilter and your
>>XPDF2Thumbnail use the awt libraries to manipulate bitmaps. Therefore
>>it might be possible to apply the same fixes to XPDF2Thumbnail as were
>>applied to the JPEG filters. Try asking Jason Sherman
>> about it, he's the author of the fixes and might
>>be willing to do it for PDF, too.
>>
>>
>>Regards,
>>~~helix84
>>
>>Compulsory reading: DSpace Mailing List Etiquette
>>https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] PDF Thumbnail Resolution

2013-10-15 Thread helix84
On Tue, Oct 15, 2013 at 4:31 PM, RENTON Scott  wrote:
> Yeah, that's the code I'm using. I'm not too surprised if the JPEG work is 
> only for images- I would say the PDF thumbnails work is quite an obscure 
> requirement. Anyway, if this is not changing, I would be happy to tell the 
> users that this is the best they can get for the moment; they may decide not 
> to implement, but that's up to them!

Sorry about the inaccurate first answer.

I see that both the fixed JPEGFilter/BrandedPreviewJPEGFilter and your
XPDF2Thumbnail use the awt libraries to manipulate bitmaps. Therefore
it might be possible to apply the same fixes to XPDF2Thumbnail as were
applied to the JPEG filters. Try asking Jason Sherman
 about it, he's the author of the fixes and might
be willing to do it for PDF, too.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] PDF Thumbnail Resolution

2013-10-15 Thread RENTON Scott
Thanks Bram and Ivan

Yeah, that's the code I'm using. I'm not too surprised if the JPEG work is only 
for images- I would say the PDF thumbnails work is quite an obscure 
requirement. Anyway, if this is not changing, I would be happy to tell the 
users that this is the best they can get for the moment; they may decide not to 
implement, but that's up to them!

Cheers for spending time on this
Scott

Scott Renton
Systems Developer, Library & University Collections
24 Buccleuch Place, 2nd Floor Right
tel: 515219



From: Bram Luyten mailto:b...@atmire.com>>
Date: Tuesday, 15 October 2013 15:22
To: Ivan Masár mailto:heli...@centrum.sk>>
Cc: Scott RENTON mailto:scott.ren...@ed.ac.uk>>, 
"dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>" 
mailto:dspace-tech@lists.sourceforge.net>>
Subject: Re: [Dspace-tech] PDF Thumbnail Resolution

Not an immediate answer to the question, but I think the recent work on the 
JPEG filters only applies to images.

The XPDF code that generates thumbnails for PDFS can be found here:
https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/XPDF2Thumbnail.java

rgds

Bram


--
[http://atmire.com/images/@mire_web_2.jpg]
Bram Luyten @mire
2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010
Esperantolaan 4, Heverlee 3001, Belgium
www.atmire.com<http://atmire.com/website/?q=services&utm_source=emailfooter&utm_medium=email&utm_campaign=braml>


On Tue, Oct 15, 2013 at 4:02 PM, helix84 
mailto:heli...@centrum.sk>> wrote:
Hi Scott,

this will be fixed in DSpace 4.0. You can also use the patch in 3.x, see
https://jira.duraspace.org/browse/DS-1259


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] PDF Thumbnail Resolution

2013-10-15 Thread Bram Luyten
Not an immediate answer to the question, but I think the recent work on the
JPEG filters only applies to images.

The XPDF code that generates thumbnails for PDFS can be found here:
https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/XPDF2Thumbnail.java

rgds

Bram


-- 
[image: logo]
*Bram Luyten* *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
www.atmire.com


On Tue, Oct 15, 2013 at 4:02 PM, helix84  wrote:

> Hi Scott,
>
> this will be fixed in DSpace 4.0. You can also use the patch in 3.x, see
> https://jira.duraspace.org/browse/DS-1259
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
> --
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] PDF Thumbnail Resolution

2013-10-15 Thread helix84
Hi Scott,

this will be fixed in DSpace 4.0. You can also use the patch in 3.x, see
https://jira.duraspace.org/browse/DS-1259


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette