Open jheinitz opened 8 years ago
Hello, It is a know issue. This issue has been raise before. You can find a workaround by referring to issue #60. It is not implemented yet, as it make an assumption that I don't really like. Let me know if it works for you, so I can push a patch.
Hello,
thanks for the quick reply. I tried the workaround from issue #60 but it did not help for me. I think that this is due to the fact that my directory does not contain one or more dots, but the filename itself.
However, I played around with it and found a solution. I replaced the L191 with the following code:
concat(trim(both '.' from reverse(substr(reverse(i.path),instr(reverse(i.path), '.'),255))),'-sq.',SUBSTRING_INDEX(TRIM(LEADING '.' FROM i.path), '.', -1 )), -- trim(leading '.' from concat(trim(trailing '.' from left(i.path, length(i.path) - instr(reverse(i.path), '.'))),'-sq', right(i.path, instr(reverse(i.path), '.')))),
Maybe a little bit hard to read, but let me explain what I achieved using this SQL code:
I can confirm that this works with filenames containing a single dot or up to 5 dots. It is also working when the i.path contains special characters like german Umlaute (äöüß).
Maybe this can be included in one of the next releases.
Thanks and kind regards
Jens
Hello,
first of all, I would like to thank you for your great work. This is really cool stuff.
I found an issue with some of my pictures. They are not beeing displayed on the OSM-Map when I point on the blue marker. First I thought that it is related to my german "Umlaute" like äöü. but it is not. I figured out that a picture called "TestPicture_03.09.2015.jpg" is not shown. In the i.log I can see that a requst is made to "TestPicture_03-sq.jpg". As you can see the ".09.2015" is missing.
Any ideas? If you point me to the right direction, I can try to fix it on my own.
By the way, the pictures do show up in the standard piwigo albums.
Thanks and kind regards
Jens