You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
The text was updated successfully, but these errors were encountered:
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,
The text was updated successfully, but these errors were encountered: