rejetto forum

How to show thumbnail of JPG image file?

0 Members and 1 Guest are viewing this topic.

Offline warlock69

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
Hello,
I'm totally new to HFS. I just need a simple way to show thumbnail of JPG image file.
Please can someone provide me the required files/codes and install instructions to make this possible?   


Offline dj

  • Tireless poster
  • ****
    • Posts: 291
  • 👣 🐾
    • View Profile
    • PWAs

Offline warlock69

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
welcome,

simple way to show image thumbnails on default template

Thank you for your help.  :)
I've downloaded viewthumbs2.zip and got file named hfs.diff.tpl
Created a New Folder in HFS then I click add file and added hfs.diff.tpl
Then I've added a test folder and inside it there was a JPG file but I was not able to get thumbnail of the image.
Did I do it correctly?



Offline dj

  • Tireless poster
  • ****
    • Posts: 291
  • 👣 🐾
    • View Profile
    • PWAs
No.
In Explorer add the hfs.diff.tpl in your test folder
Then in your test folder create a new subfolder named thumb
Then put the thumbnail image in the folder thumb.

If you don't have a thumbnail image, you need to create one (search in forum).
Delete your New Folder (not necessary)


Offline warlock69

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
No.
In Explorer add the hfs.diff.tpl in your test folder
Then in your test folder create a new subfolder named thumb
Then put the thumbnail image in the folder thumb.

If you don't have a thumbnail image, you need to create one (search in forum).
Delete your New Folder (not necessary)

Thank you for your reply.

I'm currently using Live-3.0.1 from rawr.thatstevensguy.com
Just by editing Live-3.0.1.tpl file
from full-img-thumbs=off to full-img-thumbs=on
Shows preview of image in HFS page like this

But is there any way to increase the size of the thumbnail ?

« Last Edit: August 21, 2019, 08:09:34 PM by warlock69 »


Offline dj

  • Tireless poster
  • ****
    • Posts: 291
  • 👣 🐾
    • View Profile
    • PWAs
It's not so easy to do that with Live template.

I recommend to try jpgimgthumbs.
Only change the style of the image.


Offline Bowers

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
Hello,

I'm trying to use jpgimgthumbs and picturviewer addon.

Is it better to use dnd_upload_thumb? How can I create only thumbnails?
Writtle University College | associate professor> my tasks domyhomeworkonline.net


Offline dj

  • Tireless poster
  • ****
    • Posts: 291
  • 👣 🐾
    • View Profile
    • PWAs
welcome,

There are several ways.
When I have time, I'll write it again detailed.

I think the easiest way to show build-in thumbnails with photos is with hfs2.4 and mobil-light template.

Alt. for the hfs2.4 default tpl you can add Jpgimgthumb_S.diff.tpl


Edited:
ThumbsV5.6 (hidden in mobil-lightV5.6.3betabundle) show thumbs of subfolder thumb
create thumbs on upload
« Last Edit: March 20, 2021, 07:44:18 AM by dj »


Offline danny

  • Tireless poster
  • ****
    • Posts: 281
    • View Profile
Ideally, we should:
look for jpg inbuilt thumbnail > failover to full file (no blanks)
and lazyload,
and small delays between each image, to give the server time for multiple users.
« Last Edit: April 30, 2021, 06:21:11 PM by danny »