ingenieroariel / yolanda

GeoNode
1 stars 1 forks source link

Document thumbnails #8

Closed ghost closed 10 years ago

ghost commented 10 years ago

We need to generate thumbnails of docs if it can be done (for PDF etc)

garnertb commented 10 years ago

I have an initial attempt for this, of course it is going to require some modifications to the GeoNode core. This needs a lot more testing before getting included into core.

Dependencies (ubuntu):

Mac:

The commit: https://github.com/garnertb/geonode/commit/9ed700b97b26d515607e2dec1519812d741db1cb

screen shot 2013-11-21 at 11 03 05 am

jj0hns0n commented 10 years ago

NICE! is it not doing the full page thumbnail? Cant tell from this screenshot.

On Thu, Nov 21, 2013 at 8:57 AM, Tyler Garner notifications@github.comwrote:

I have an initial attempt for this, of course it is going to require some modifications to the GeoNode core. This needs a lot more testing before getting included into core.

Dependencies (ubuntu):

  • Imagemagick installed on the box. (apt-get install imagemagick)
  • The Wand python library.

Mac:

The commit: garnertb/geonode@9ed700bhttps://github.com/garnertb/geonode/commit/9ed700b97b26d515607e2dec1519812d741db1cb

[image: screen shot 2013-11-21 at 11 03 05 am]https://f.cloud.github.com/assets/1141646/1593236/7f755588-52c8-11e3-957a-2e36c506405b.png

— Reply to this email directly or view it on GitHubhttps://github.com/ingenieroariel/yolanda/issues/8#issuecomment-29001686 .

garnertb commented 10 years ago

No, is that preferable? This approach reduces the image by 50% and then takes the first 200 x 150px.

jj0hns0n commented 10 years ago

It would be nice to see the whole page, just scale it down to fit no matter what the original size (think big huge uploaded PDFs of maps). Guess we have to get the original size somehow, not sure how best to do that.

On Thu, Nov 21, 2013 at 9:58 AM, Tyler Garner notifications@github.comwrote:

No, is that preferable? This approach reduces the image by 50% and then takes the first 200 x 150px.

— Reply to this email directly or view it on GitHubhttps://github.com/ingenieroariel/yolanda/issues/8#issuecomment-29007179 .

ingenieroariel commented 10 years ago

I actually kind of like Tyler's approach, looks similar to what gmail is doing nowadays. It does not tell you everything about the document but gives a good enough glimpse.

On Thu, Nov 21, 2013 at 1:02 PM, Jeffrey Johnson notifications@github.comwrote:

It would be nice to see the whole page, just scale it down to fit no matter what the original size (think big huge uploaded PDFs of maps). Guess we have to get the original size somehow, not sure how best to do that.

On Thu, Nov 21, 2013 at 9:58 AM, Tyler Garner notifications@github.comwrote:

No, is that preferable? This approach reduces the image by 50% and then takes the first 200 x 150px.

— Reply to this email directly or view it on GitHub< https://github.com/ingenieroariel/yolanda/issues/8#issuecomment-29007179> .

— Reply to this email directly or view it on GitHubhttps://github.com/ingenieroariel/yolanda/issues/8#issuecomment-29007529 .

ingenieroariel commented 10 years ago

I will take care of deploying this to the production box today.

garnertb commented 10 years ago

Thanks Ariel, should we create an official fork of GeoNode for these immediate core improvements?