Announcement

#1 2021-03-18 09:38:50

piwent
Member
2020-10-24
97

Not seeing thumbnails for tiff files

Hello,

Are thumbnails for tiff natively supported in Piwigo?

When I upload a tiff file, I just see the question mark image at /themes/default/icon/mimetypes/unknown.png. This is what I see in the album view as well as when on the image page. The uploaded tiff is there and can be downloaded. But no thumbnail.

When I look in the root/upload/2021/03/18 folder the .tiff file is there. When I go to root/_data/i/upload/2021/03/18 there are no alternate sizes. There are for the jpg files of other images.

I tried to follow the instructions here https://piwigo.org/doc/doku.php?id=user … es_missing

In my log file I see this:

[2021-03-18 1:36:58]    [INFO]    upload_file_pdf, $file_path = ././upload/2021/03/18/20210318013658-869e7a87.tif, $representative_ext =
[2021-03-18 1:36:58]    [INFO]    upload_file_tiff, $file_path = ././upload/2021/03/18/20210318013658-869e7a87.tif, $representative_ext =
[2021-03-18 1:36:58]    [INFO]    upload_file_video, $file_path = ././upload/2021/03/18/20210318013658-869e7a87.tif, $representative_ext =
[2021-03-18 1:36:58]    [INFO]    Handling ././upload/2021/03/18/20210318013658-869e7a87.tif got
[2021-03-18 1:36:58]    [INFO]    add_uploaded_file : force cache generation, derivative_url = https://media.serenecolombo.org/themes/ … nknown.png
[2021-03-18 1:36:58]    [DEBUG]    community_ws_images_uploadCompleted : enter notification part

I do have ImageMagick on my server. This is what I get when I do convert -version

Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib

This is my environment:

    Piwigo 11.3.0 Check for upgrade
    Operating system: Linux
    PHP: 7.4.15 (Show info) [2021-03-18 01:35:01]
    MySQL: 5.7.28-log [2021-03-18 01:35:01]
    Graphics Library: ImageMagick 6.9.7-4


Can anyone give advice on what to try next?

Last edited by piwent (2021-03-18 09:39:19)

Offline

 

#2 2021-03-19 19:54:24

homdax
Member
Sweden
2015-02-02
294

Re: Not seeing thumbnails for tiff files

The question would be if Piwigo or image engines like GD or Imagemagick even are able to make thumbnails from tiff files? Has it worked before?

Offline

 

#3 2021-03-20 02:13:38

piwent
Member
2020-10-24
97

Re: Not seeing thumbnails for tiff files

I honestly can't say if its worked before. I did a search in my gallery for .tif and .tiff and couldn't find any. I don't think I have uploaded them before.

I contacted my hosting provider and they said they can't see anything on their end that would prevent it.

Maybe some kind person could try and upload a tiff to their gallery and see if they get the same behaviour. Namely that no thumbnails are created.

Thanks!

Offline

 

#4 2021-03-20 09:35:14

homdax
Member
Sweden
2015-02-02
294

Re: Not seeing thumbnails for tiff files

I don't normally have any tiff, in my experience those are done via FAX scanners but I converted a RAW image (Nikon NEF) in to a TIF image using my Photoshop and uploaded to a Gallery I have that is 100% vanilla and very recently updated to Piwigo 11.4.

It gave me invalid file extension. Piwigo's default settings are not made for TIF.


That's enough for me. I am not modding this album or adding file extensions that have no general purpose for web browsing, I would never upload RAW images either for that matter since it is a huge waste of space.

https://en.wikipedia.org/wiki/TIFF


From: https://en.wikipedia.org/wiki/Image_file_formats#TIFF

. TIFF image format is not widely supported by web browsers.

Offline

 

#5 2021-03-20 11:10:35

piwent
Member
2020-10-24
97

Re: Not seeing thumbnails for tiff files

homdax wrote:

It gave me invalid file extension. Piwigo's default settings are not made for TIF.
That's enough for me. I am not modding this album

Thanks for trying.

These are high resolution photographs of artwork that will be used for print production. Our gallery is an in-house graphics repository for images that are used in production work. Everything I'm finding says that tiff is best for print work. I have no idea if that is really true.

When I convert them to png they look the same to me. ¯\_(ツ)_/¯ But I think that there are other characteristics of images files, such as cmyk vs rgb that may matter in production. Or maybe not. While I'd love to save the disk space (the pngs are about 1/3 the size) I don't want to risk loosing anything that might be helpful in the future. For some reason where I live all of the printing shops seem to require jobs submitted as TIFF. That may just be a hold over from previous times.

Anyone else have experience with TIFF on Piwigo?

Offline

 

#6 2021-03-20 11:15:06

homdax
Member
Sweden
2015-02-02
294

Re: Not seeing thumbnails for tiff files

You may want to look in to a document storage system, instead of an image gallery.

Nextcloud, Resourcespace and others do not have the "web" presentation approach, at least not defined as such as default, but, Piwigo is originally made for web presentation of web friendly images. Sure you can hack it, but there is no reason for Piwigo to be able to handle images that are not browser compatible.

Personally I am looking more and more at Resourcespace for document storage: https://www.resourcespace.com/knowledge … ed_formats

Offline

 

#7 2021-03-20 11:19:26

piwent
Member
2020-10-24
97

Re: Not seeing thumbnails for tiff files

Right. This set of tiffs are kind of an edge case even for us. I certainly agree that Piwigo isn't good as a document storage solution. But tiff's are images so it didn't seem like a stretch. And since ImageMagick supports them I thought it would work.

Thanks for the suggestion.

Offline

 

#8 2021-03-21 23:27:51

flop25
Piwigo Team
2006-07-06
7037

Re: Not seeing thumbnails for tiff files

hello
Tiff are handled well by piwigo, but it's converted to jpeg or png in order to be displayed on the web
That's automatic if you are using ImageMagick on your server (check admin.php?page=maintenance)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#9 2021-03-22 04:35:33

piwent
Member
2020-10-24
97

Re: Not seeing thumbnails for tiff files

flop25 wrote:

hello
Tiff are handled well by piwigo, but it's converted to jpeg or png in order to be displayed on the web
That's automatic if you are using ImageMagick on your server (check admin.php?page=maintenance)

We'll that's good to hear. But as I said earlier, I do have ImageMagick running. That's the problem.

Piwigo 11.4.0 Check for upgrade
Operating system: Linux
PHP: 7.4.15 (Show info) [2021-03-21 20:31:17]
MySQL: 5.7.28-log [2021-03-21 20:31:17]
Graphics Library: ImageMagick 6.9.7-4

Checking on the IM homepage, https://imagemagick.org/index.php

The current release is ImageMagick 7.0.11-4.

So I'm off by a touch, but I can't believe that is the issue. Any ideas? Are tiffs being converted on your gallery?

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact