Kwgt breaking when using very wide images (2800px width)

I’m not able to load these images. And the app is glitching. Providing a link to a screen recording:

Do only these images fail to show on your home screen, or do no images show up at all? Try clearing the KWGT cache, rebooting your phone, creating a new preset, and loading the image again.

They are breaking in every way possible, sometimes they don’t show in the editor and home screen both, sometimes they show in the editor but not on the home screen, and right now they are showing on the home screen but not in the editor.
something is causing the images to not load properly. I have tried all the steps that you’ve mentioned, even reinstalled kwgt.
Changing the default save folder seems to have temporarily fixed it, but not sure if it’ll hold.
In on glitch all images were showing but they somehow caused all the text to disappear.
Right now, I’m using a different temporary folder as default, but all my past widgets are in the kustom folder, and I don’t want to lose them.

This has been a problem for a long time actually with SVGs and large/HD images. I.E. weather icon images extracted from google always fail to load if the widget is loaded from a backup file.

1 Like

How exactly are you adding these images? Are you using the ‘Pick Image’ option in a Bitmap global/module to embed them directly into Kustom, or are you using file paths?

Also, about those HD images: I highly recommend resizing them to the actual widget size in a photo editor before importing them.

Pick image works fine. It’s almost always the issue with using file path or a link. It either doesn’t load or takes a long time to load the images.

Could you also suggest the best way to make the images the same resolution as the shape it’s going to be shown on.

I’m using the bitmap texture in the fx tab on a rectangle.

I can provide the widget file if that’ll help identify the issue.

Here is a simple trick.

Create a Shape in Kustom with the exact width and height you need.

Use the ‘Export as Image’ feature.

Check the properties of that file in your gallery — it will show you the exact pixel dimensions Kustom uses for that size.

1 Like

Thank you for the tip :smiley:

1 Like

Hi @Ashwin_Soni ,

A tip on working with image in a Kustom preset:

  • Picking an image to use, when editing, will embed/include the image into the preset.
  • Using a file path of the image doesn’t embed the file, therefore it will take some time to locate & load the image. When using a (very) large image, a high resolution one, the amount of time to locate & load the image will increase significantly.

I hope this would help.

:smiling_face::+1:

1 Like

Hi @Ashwin_Soni ,

You can dynamically set the image size using either one of both these functions:

  • $si(rwidth)$
  • $si(rheight)$

Both functions will set the image’s width and/or height to the size of the root container.

I hope this would help.

:smiling_face::+1:

1 Like

Thank you @Baju_Santiko :grinning_face:

Still learning alot about these apps every day. A lot more to learn :saluting_face:

1 Like

Hi @Ashwin_Soni ,

Should you need any assistance in checking your widget, feel free to share it with us here or privately through direct message.

I hope this would help.

:smiling_face::+1:

1 Like