uoregon-libraries / oregon-oni

Oregon theme / customizations for use with Open ONI
1 stars 0 forks source link

Provide image clipping and high-res jpeg/pdf options on the "print" page #44

Open jechols opened 6 years ago

jechols commented 6 years ago

(This issue is ported from https://github.com/uoregon-libraries/oregonnews/issues/16)

Example use case: I want to clip the entire "The Noise of Battle" article from http://oregonnews.uoregon.edu/lccn/sn83025138/1895-01-09/ed-1/seq-1/. I can't zoom in very far, so my clipped window is either useless (http://oregonnews.uoregon.edu/lccn/sn83025138/1895-01-09/ed-1/seq-1/print/image_615x817_from_0%2C481_to_6550%2C9169/) or I have to zoom and pan a ton, clipping individual segments in order to clip the whole article in a way that's readable.

There are tools that let users crop images via the web - facebook does this, for instance. We could add such a tool to the clip page to let users grab only the pieces of the paper they want, effectively just changing the parameters and generating a new clipped image.

The image server and the app can already do whatever we want, there's just no interface. Hacking the URL, for instance, I can effectively clip the image. A high-res image can be found at http://oregonnews.uoregon.edu/lccn/sn83025138/1895-01-09/ed-1/seq-1/print/image_869x3295_from_1934,1044_to_3672,7633 and a low-res image at http://oregonnews.uoregon.edu/lccn/sn83025138/1895-01-09/ed-1/seq-1/print/image_215x820_from_1934,1044_to_3672,7633

We would present the low-res image since that's the current behavior, but we'd have a new option to download or the high-res version as PDF or JPEG. Once the user crops what they want, they just hit the new button and have a very easy way to clip precisely the articles they want.

I believe this feature could benefit us a great deal as well as the ONI community as a whole.

jechols commented 6 years ago

Note that this kind of functionality could eventually lead to "tagging" things like articles as their own entities. With a nice UI, we could even have a sort of aggregation of articles that span multiple pages.