Announcement

#1 2014-04-06 12:08:26

jdd
Member
Toulouse (France)
2009-12-19
118

Problem with pdf thumbnails

Hello,

last piwigo, fresh install.

I wonder if I didn't got a bug.

I'm working on the charlie's content code and now testing the thumbnail generation.

I use a script to convert a random jpg to the thumnail folder and size. I use nearly the same one for videos and pdf, but with a different result.

No problem for videos as you can see here:

http://dodin.info/~piwigo/piwigo/index.php?/category/3

html source code of the page:

Code:

<img src="./galleries/video/20140329-craq/pwg_representative/20140329-craq-05-bymyself-val.jpg" alt="20140329-craq" title="20140329-craq - display this album">

all correct

so why do I have for the pdf:
http://dodin.info/~piwigo/piwigo/index.php?/category/5

the html code:

Code:

data-src="i.php?/galleries/documents/2001/pwg_representative/2001-LaDepeche.fr-th.jpg" alt=(...)

notice the -th aded just before the .jpg, that, of course, do not exists in the original file name.

Notice that the pdf document is correctly displayed, only the thumbnail have problem. Notice also that the displayed icon (!) shows a file name problem.

thanks
jdd

Last edited by jdd (2014-04-06 12:10:42)

Offline

 

#2 2014-04-06 13:26:12

flop25
Piwigo Team
2006-07-06
7037

Re: Problem with pdf thumbnails

Hi
the url is indeed wrong
Why? well don't know ^^ it's up to you
the dot in the name? wrong function called?


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

 

#3 2014-04-06 13:43:40

jdd
Member
Toulouse (France)
2009-12-19
118

Re: Problem with pdf thumbnails

flop25 wrote:

the dot in the name?

good guess!

piwigo do not like double dotted file names, removing the excess dot solves the problem.

so seems the piwigo doc is incomplete

http://piwigo.org/doc/doku.php?id=user_ … dd_picture

"File name and album limitations: the name of directories and files must contain only letters, numbers, ”-”, “_” or ”.”. No blank spaces, nor accentuated characters."

add "one single dot".

thanks a lot
jdd

Last edited by jdd (2014-04-06 13:44:05)

Offline

 

#4 2014-04-06 13:47:49

flop25
Piwigo Team
2006-07-06
7037

Re: Problem with pdf thumbnails

that's weird. What's your local config?
It might be a bug in i.php... could you also check in the database what are the values in piwigo_picture for that picture?


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

 

#5 2014-04-06 15:41:36

jdd
Member
Toulouse (France)
2009-12-19
118

Re: Problem with pdf thumbnails

Well...

I franckly do not understand.

To test the dot problem, I just removed the excess dot in the two filenames and re sync the database, so I didn't have anymore the faulty entry.

So to answer your question I copied the two files, re-adding the dot on the fly... and no problem for thumbs.

I removed the files completely, sync. re-copied from the local source to the site, re-sync, no problem.

is there somewhere on the server a log file where I could look at?

looks like a transient problem???

(server and local client are all together linux)

thanks
jdd

Offline

 

#6 2014-04-06 15:46:24

flop25
Piwigo Team
2006-07-06
7037

Re: Problem with pdf thumbnails

wow...
nothing changed? honestly? the pdf were there before updates?
there is no such debug log.
weirder


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

 

#7 2014-04-06 15:53:12

jdd
Member
Toulouse (France)
2009-12-19
118

Re: Problem with pdf thumbnails

flop25 wrote:

wow...
nothing changed? honestly? the pdf were there before updates?
there is no such debug log.
weirder

no update, fresh install, only used to test the plugin :-)

thanks
jdd

Offline

 

#8 2014-04-06 15:55:05

flop25
Piwigo Team
2006-07-06
7037

Re: Problem with pdf thumbnails

deeply sry to not being very helpfull


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 2014-04-06 15:56:25

jdd
Member
Toulouse (France)
2009-12-19
118

Re: Problem with pdf thumbnails

flop25 wrote:

deeply sry to not being very helpfull

don't, you made me understand it's a temporay error. So many reason can be seen...

jdd

Offline

 

Board footer

Powered by FluxBB

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