Web based family history software

file Question Thumbnails for PDF and MP3

  • WGroleau
  • WGroleau's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 week 1 hour ago - 1 week 58 minutes ago #1 by WGroleau
Thumbnails for PDF and MP3 was created by WGroleau
For thumbnails of PDFs and audio files:

Would be nice if a media object that is PDF could have a miniature image of the first page.  Code that might work:  stackoverflow.com/questions/12783477/cre...n-php-and-caching-it

Similarly, for a media object that is MP3 (or other audio that supports ID3), a miniature image of the first embedded image.  If the file has no images, use the generic currently used.  Code that might work:  github.com/NickSwardh/mp3

If the first page of a PDF is not the best thumbnail, a savvy user could create their own page and add it to the PDF.
If an MP3 does not contain a useful image, one can be added with eyeD3 or similar tools.
If the autogenerated thumbnail of an image is not a good image, convert the image to PDF and add your own first page.  For example, if a person is a small part of a large image and you don't want to crop it, you can crop a copy and make that the thumbnail.

For audio,  exiftool contains perl code that can do it and eyeD3 is a Python app that can do it.

--
Wes Groleau
UniGen.us/
Last edit: 1 week 58 minutes ago by WGroleau. Reason: Clarity and additional info

Please Log in or Create an account to join the conversation.

More
6 days 7 hours ago #2 by RickM
Replied by RickM on topic Thumbnails for PDF and MP3
Sounds rather cool.. Plus 1 from Me!!

Rick M
Tauranga
Nu Tirani - New Zealand

alineofmalkins.com/wt-malkins
Webtrees v2.2.2
Hosted by HostAmarada on litespeed Server, PHP v8.3

Please Log in or Create an account to join the conversation.

More
6 days 7 hours ago #3 by Franz Frese
Replied by Franz Frese on topic Thumbnails for PDF and MP3
must do code for no additional benefit.
Thumbnail is not for preview, so the simple text pdf or mp3 is enough to have a place to click on.

Please Log in or Create an account to join the conversation.

  • WGroleau
  • WGroleau's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
6 days 4 hours ago #4 by WGroleau
Replied by WGroleau on topic Thumbnails for PDF and MP3

must do code for no additional benefit.
Thumbnail is not for preview, so the simple text pdf or mp3 is enough to have a place to click on.
 
I’ll have to disagree.  Before automatic thumbnails were introduced, I often created a custom thumbnail to give users an idea of what the item would be.  Reduce a census image to a thumbnail, and you basically get a gray rectangle.  

--
Wes Groleau
UniGen.us/

Please Log in or Create an account to join the conversation.

  • WGroleau
  • WGroleau's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
6 days 4 hours ago #5 by WGroleau
Replied by WGroleau on topic Thumbnails for PDF and MP3

If an MP3 does not contain a useful image, one can be added with eyeD3 or similar tools.
 
I just remembered also that a jpg can have an embedded preview image that could be used for thumbnail instead of just shrinking the main image.

--
Wes Groleau
UniGen.us/

Please Log in or Create an account to join the conversation.

More
6 days 3 hours ago - 6 days 3 hours ago #6 by Franz Frese
Replied by Franz Frese on topic Thumbnails for PDF and MP3
Reduce a census image to a thumbnail, and you basically get a gray rectangle.  
... And so on

So that is what I mean: no additional information.
​​​​
You cant get more information.
Last edit: 6 days 3 hours ago by Franz Frese.

Please Log in or Create an account to join the conversation.

More
6 days 3 hours ago - 6 days 2 hours ago #7 by RickM
Replied by RickM on topic Thumbnails for PDF and MP3
I see this like Avatars.. Mine shows a Sperm Tadpole.. A Grumpy Old Man Avatar would be a better representation of me in real life..

Franz, I'm not sure exactly what yours shows, perhaps a Deer.. And you see that as appropriate, no worries..

OP's post shows a person.. An Exact representation of who he/she (whatever) they are..

There is lots of spice in WebTrees in terms of Icons.. WHY NOT add some spice to Icons that are now quite common in File Types??

May not be any real benefit in the additional code required to do so, however??

AND NOW lets debate the right/wrong Icons to be used and how to achieve that!!

Rick M
Tauranga
Nu Tirani - New Zealand

alineofmalkins.com/wt-malkins
Webtrees v2.2.2
Hosted by HostAmarada on litespeed Server, PHP v8.3
Last edit: 6 days 2 hours ago by RickM. Reason: Wrong info origianlly better now included

Please Log in or Create an account to join the conversation.

  • WGroleau
  • WGroleau's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
5 days 19 hours ago #8 by WGroleau
Replied by WGroleau on topic Thumbnails for PDF and MP3

Reduce a census image to a thumbnail, and you basically get a gray rectangle.  
... And so on

So that is what I mean: no additional information.
​​​​
You cant get more information.
No additional information, in fact LESS information in a thumbnail generated by merely shrinking the image.  But if my suggestion to support custom thumbnails were implemented, we could get something like the attached images.  "auto" is from my current website; "custom" is something my request would make possible.
       

--
Wes Groleau
UniGen.us/

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum