Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect number of images in subdir #17

Closed
maurodeca opened this issue Jan 31, 2023 · 3 comments
Closed

Incorrect number of images in subdir #17

maurodeca opened this issue Jan 31, 2023 · 3 comments

Comments

@maurodeca
Copy link

Lazygal v 0.10.5
If I run lazygal multiple times on the same directory tree, the number of images reported for each subdir in the main index page is incremented every time although no pictures were added. Only way to reset the counters seems to be to manually remove the index.json file.

@niol
Copy link
Owner

niol commented Feb 4, 2023

Hi, thanks for reporting by i cannot reproduce. Can you provide the layout of a minimal image tree you are using and your config and command line?

@maurodeca
Copy link
Author

Thanks for looking into this. This is how I can reproduce it:

/test_lazygal/Source/dir1 contains 23 files .jpg

I run the command lazygal -o ../Out -t inverted .

In /test_lazygal/Out/index.html I see a thumbnail named ´dir1´ and under it says "23 pictures"

Then I do: touch Source/dir1/* followed by: lazygal -o ../Out -t inverted .

Now in /test_lazygal/Out/index.html I see a thumbnail named ´dir1´ and under it says "46 pictures"

@maurodeca
Copy link
Author

.lazygal/config:
[runtime]
quiet = No
debug = No
check-all-dirs = No

[global]
output-directory = .
force-gen-pages = No
clean-destination = No
dir-flattening-depth = No
puburl = No
theme = default

[webgal]
default-style = default
webalbumpic-bg = transparent
webalbumpic-type = messy
webalbumpic-size = 200x150
image-size = small=1280x720
thumbnail-size = 150x113
thumbs-per-page = 0
filter-by-tag =
sort-medias = exif
sort-subgals = dirname
original = No
original-baseurl = No
original-symlink = No
dirzip = No
jpeg-quality = 90
jpeg-optimize = Yes
jpeg-progressive = Yes
publish-metadata = Yes
keep-gps = No

.lazygal/defaults.config:

[runtime]
quiet = No
debug = No
check-all-dirs = No

[global]
output-directory = .
force-gen-pages = No
clean-destination = No
dir-flattening-depth = No
puburl = No
theme = default

[webgal]
default-style = default
webalbumpic-bg = transparent
webalbumpic-type = messy
webalbumpic-size = 200x150
image-size = small=800x600
thumbnail-size = 150x113
thumbs-per-page = 0
filter-by-tag =
sort-medias = exif
sort-subgals = dirname
original = No
original-baseurl = No
original-symlink = No
dirzip = No
jpeg-quality = 85
jpeg-optimize = Yes
jpeg-progressive = Yes
publish-metadata = Yes
keep-gps = No

@niol niol closed this as completed in 9aadeb3 Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants