ComfyUI_Comfyroll_CustomNodes icon indicating copy to clipboard operation
ComfyUI_Comfyroll_CustomNodes copied to clipboard

CR_LoadImageListPlus

Open djm1231 opened this issue 1 year ago • 1 comments

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,

djm1231 avatar Oct 12 '24 01:10 djm1231

I also encountered the same problem

llnancy avatar Nov 03 '24 05:11 llnancy