Problem with loading an image
Posted: Sun Dec 06, 2020 8:26 pm
Hi everyone!
So I've been looking around for a while now, and can't find an explanation, let alone a solution to this issue.
I'll paste the traceback below, but before that:
- the image names in the code and the names of the actual images are matching
- the file type(jpg) is correct (though it should be irrelevant, as it is just a "show" image in the script)
- if I rename the image in the code and the actual image file (say from a1 to a1_fix), it works, but then the next image will pop up with an error. So I could rename ALL the images in the code and the actual files, but that takes a super long time and I still wouldn't know what causes the issue
- it works fine with a PC build (identical code and files) but does this in the Android build
So my question is, why is this happening, and how could I fix this WITHOUT having to rename all the images and the respective lines of code. Thank you!
Here is the traceback:
So I've been looking around for a while now, and can't find an explanation, let alone a solution to this issue.
I'll paste the traceback below, but before that:
- the image names in the code and the names of the actual images are matching
- the file type(jpg) is correct (though it should be irrelevant, as it is just a "show" image in the script)
- if I rename the image in the code and the actual image file (say from a1 to a1_fix), it works, but then the next image will pop up with an error. So I could rename ALL the images in the code and the actual files, but that takes a super long time and I still wouldn't know what causes the issue
- it works fine with a PC build (identical code and files) but does this in the Android build
So my question is, why is this happening, and how could I fix this WITHOUT having to rename all the images and the respective lines of code. Thank you!
Here is the traceback:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While loading <'Image' 'images/a1_03.jpg'>:
Exception: Could not load image 'images/a1_03.jpg': error('JPEG loading error',)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "xscripts/script a1.rpyc", line 114, in script
File "renpy/ast.py", line 1389, in execute
File "renpy/exports.py", line 1601, in with_statement
File "renpy/display/core.py", line 2251, in do_with
File "renpy/display/core.py", line 2702, in interact
File "renpy/display/core.py", line 3194, in interact_core
File "renpy/display/core.py", line 2094, in draw_screen
File "renpy/display/render.pyx", line 490, in renpy.display.render.render_screen (gen/renpy.display.render.c:6805)
File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen/renpy.display.render.c:3520)
File "renpy/display/layout.py", line 722, in render
File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen/renpy.display.render.c:4075)
File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen/renpy.display.render.c:3520)
File "renpy/display/transition.py", line 180, in render
File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen/renpy.display.render.c:4075)
File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen/renpy.display.render.c:3520)
File "renpy/display/transition.py", line 361, in render
File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen/renpy.display.render.c:4075)
File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen/renpy.display.render.c:3520)
File "renpy/display/layout.py", line 722, in render
File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen/renpy.display.render.c:4075)
File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen/renpy.display.render.c:3520)
File "renpy/display/layout.py", line 722, in render
File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen/renpy.display.render.c:4075)
File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen/renpy.display.render.c:3520)
File "accelerator.pyx", line 110, in renpy.display.accelerator.transform_render
File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen/renpy.display.render.c:3520)
File "renpy/display/image.py", line 500, in render
File "renpy/display/image.py", line 306, in wrap_render
File "renpy/display/render.pyx", line 166, in renpy.display.render.render (gen/renpy.display.render.c:4075)
File "renpy/display/render.pyx", line 259, in renpy.display.render.render (gen/renpy.display.render.c:3520)
File "renpy/display/im.py", line 583, in render
File "renpy/display/im.py", line 266, in get
File "renpy/display/im.py", line 628, in load
File "renpy/display/pgrender.py", line 162, in load_image
Exception: Could not load image 'images/a1_03.jpg': error('JPEG loading error',)