RuntimeError when using PhotoLab CurveBatch script in GIMP - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions) +--- Thread: RuntimeError when using PhotoLab CurveBatch script in GIMP (/Thread-RuntimeError-when-using-PhotoLab-CurveBatch-script-in-GIMP) |
RuntimeError when using PhotoLab CurveBatch script in GIMP - menyou - 03-04-2024 I am trying to use the PhotoLab Curve Batch script in GIMP to apply a curve to a batch of images in a folder. However, I am getting a "RuntimeError: 実行時エラー" error when running the script in certain folders, but it works fine in other folders. Details:
Code: Traceback (most recent call last):
Thank you. RE: RuntimeError when using PhotoLab CurveBatch script in GIMP - Ofnuts - 03-04-2024 The image you posted is grayscale (as in Image > Mode > Grayscale). So it only has a single Gray channel, and no R/G/B channels. Therefore the script code that explicitly sets color channels can't work. [attachment=11377]
RE: RuntimeError when using PhotoLab CurveBatch script in GIMP - rich2005 - 03-04-2024 It is amazing that photolab_curvebatch.py works at all. A tribute to backwards compatibility. This from the version I have archived. # Version 3.0 # - ported to new curve format used in GIMP-2.6 Then Gimp 2.10 came along and the format changed again. This comparing the same curve Gimp 2.8 <> Gimp 2.10 [attachment=11378] As a note: for Gimp 2.10 then the batch plugin BIMP version 2.x uses the newer format. If you have older curve files then the legacy BIMP 1.8 uses the old style format. RE: RuntimeError when using PhotoLab CurveBatch script in GIMP - menyou - 03-04-2024 (03-04-2024, 10:36 AM)Ofnuts Wrote: The image you posted is grayscale (as in Image > Mode > Grayscale). So it only has a single Gray channel, and no R/G/B channels. Therefore the script code that explicitly sets color channels can't work. Thank you for your response. I understand that the script is currently designed to work with RGB channels and cannot apply curves to grayscale images. I appreciate you pointing out the issue and providing a detailed explanation. I am interested in exploring the possibility of modifying the script to support the value channel instead of RGB channels. This would allow me to apply curves to grayscale images and achieve the desired tonal adjustments. I will investigate the necessary changes to the script. Thank you again for your help and guidance. (03-04-2024, 11:22 AM)rich2005 Wrote: It is amazing that photolab_curvebatch.py works at all. A tribute to backwards compatibility. Thank you for your information. I want to clarify that the curve file I am using was created in GIMP 2.10, so it should be using the latest format. Therefore, I believe that the issue is not with the curve file itself, but rather with the script's handling of grayscale images. Thank you again for your help and guidance. RE: RuntimeError when using PhotoLab CurveBatch script in GIMP - rich2005 - 03-04-2024 If you do have further problems with the script, try BIMP a batch plugin https://www.alessandrofrancesconi.it/projects/bimp/ This will use a saved Gimp 2.10 curve file and works with both RGB or GS images. [attachment=11386] |