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

CR_LoadImageListPlus #214

Open
djm1231 opened this issue Oct 12, 2024 · 1 comment
Open

CR_LoadImageListPlus #214

djm1231 opened this issue Oct 12, 2024 · 1 comment

Comments

@djm1231
Copy link

djm1231 commented Oct 12, 2024

I’ve noticed an issue in the CR_LoadImageListPlus class where it consistently processes one less image than specified. The problem appears to be in the calculation of end_index in the make_list method:
end_index = min(start_index + max_images, len(file_list) - 1)
By subtracting 1 from len(file_list), the end_index skips the last image in the directory. To fix this, you can modify the code as follows:
end_index = min(start_index + max_images, len(file_list))
This will ensure that all images up to the specified max_images count are included in the output, without skipping the last one.

Thank you for the useful plugin, and I hope this helps improve it!

Best regards,

@llnancy
Copy link

llnancy commented Nov 3, 2024

I also encountered the same problem

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