What error are you seeing?
The code below works for me:
from kivy.app import App
from kivy.lang import Builder
kv = """
BoxLayout:
Image:
source: 'board.tif'
"""
class TIFTestApp(App):
def build(self):
return Builder.load_string(kv)
TIFTestApp(). run()
What does the startup log look like? What does it say for Image? Could it be an install issue or a limitation of the platform you are running on?
[INFO ] [Logger ] Record log in C:\Users\ellio\.kivy\logs\kivy_22-09-10_7.txt
[INFO ] [deps ] Successfully imported "kivy_deps.gstreamer" 0.3.3
[INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.3.2
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.3.1
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.4.5
[INFO ] [Kivy ] v2.1.0
[INFO ] [Kivy ] Installed at "C:\Users\ellio\PycharmProjects\KivyHelp210\venv\lib\site-packages\kivy\__init__.py"
[INFO ] [Python ] v3.9.12 (tags/v3.9.12:b28265d, Mar 23 2022, 23:52:46) [MSC v.1929 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "C:\Users\ellio\PycharmProjects\KivyHelp210\venv\Scripts\python.exe"
[INFO ] [Logger ] Purge log fired. Processing...
[INFO ] [Logger ] Purge finished!
[INFO ] [Factory ] 189 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] Backend used <glew>
[INFO ] [GL ] OpenGL version <b'4.6.0 NVIDIA 512.77'>
[INFO ] [GL ] OpenGL vendor <b'NVIDIA Corporation'>
[INFO ] [GL ] OpenGL renderer <b'NVIDIA GeForce RTX 2060/PCIe/SSE2'>
[INFO ] [GL ] OpenGL parsed version: 4, 6
[INFO ] [GL ] Shading version <b'4.60 NVIDIA'>
[INFO ] [GL ] Texture max size <32768>
[INFO ] [GL ] Texture max units <32>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [GL ] NPOT texture support is available
[INFO ] [Base ] Start application main loop
[INFO ] [Base ] Leaving application in progress...
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/dd54e22d-c0ae-4531-b40b-4e15fc55fa17n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/631d2cae.050a0220.2a3ad.9809SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
I don’t have a clue. Is the image not a valid TIF file?
What does the startup log look like? What does it say for Image? What platform are you running on (Windows, Mac, Android, Raspberry Pi…)?
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAGxNPNj6gS0vaLiH2ioOGRPUhjjegqc2mwh%3DqaN6yeuS5eoK9A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/631e3877.050a0220.13818.a66bSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
I have attached the tif file I used in my test. This worked for me, I am also running Windows.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAGxNPNgGvwCBpztqehEou%2BP3fHGiNtJR0d7y4KY%3DDGD7j8H%2B5g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/631e3e44.170a0220.d914a.5b69SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
Yes it will run with out the layout.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAMuWiPngnaVoX4_CmXVWaYDhNydaxvTCbunee9ahurNBJSTwrg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/631e67e2.920a0220.98b16.7751SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
I get a similar error with the livingroom image. It works fine if converted to a png.
Good Luck!
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAGxNPNhAA0S0kaey_kkx1jmU2e46bJedkiSgON9tdwThpLOdvw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/631f2f74.1f0a0220.9a700.8936SMTPIN_ADDED_MISSING%40gmr-mx.google.com.