Mod Making Wallpaper
-
Rexoil last edited by
What is the size for wallpaper to add in the mod files.
Also can I add WEBM wallpaper in wallpaper folder and code it?
I tried adding the WEMB it didn't work and it's not showing up, it's a blank screen not loading.Image of wallpaper code https://imgur.com/a/6HwnCDk
-
Rexoil last edited by
@sgunhouse Hello do I change the image to video for dark.
image "wallpaper/video.webm",
"first_frame": "wallpaper/FF.jpg", -
Rexoil last edited by
@sgunhouse I found out how to add mp4 wallpapers but I don't know the pixel of the wallpaper/background of it.
check the image what I'm saying
Image: https://imgur.com/a/mHDq92h -
burnout426 Volunteer last edited by
For the resolution of the image or wallpaper, you use the best quality you can or desire. You should shoot for at least 1920 x 1080, but 3840 x 2160 or 4096x2160 would be better if you have a source of that quality. No need to take a low-res image/video and upscale it though if it's going to make it look horrible.
See https://github.com/opera-gaming/gxmods/blob/main/mods/Cyberdeck/manifest.json#L23 for an example of using a video wallpaper. When you specify a video file or a wallpaper, you indeed need to provide a first_frame image or the video won't play.
For video files, the audio is not used, so it's best to strip the audio track from the file (with ffmpeg for example) to save space. But, you don't have to.
An mp4 video will indeed work as a wallpaper aslong as Opera can play mp4 files directly in a tab on your system. Using webm will technically be more compatible though.
Try a test mod like this first that just specifies a mp4 video wallpaper for dark mode and nothing else:
manifest.json:
{ "manifest_version": 3, "name": "MP4 Wallpaper", "version": "0.1", "icons": { "512": "512.png" }, "mod": { "schema_version": 1, "payload": { "wallpaper": { "dark": { "image": "video.mp4", "first_frame": "firstframe.png", "text_color": "#ffffff", "text_shadow": "#ffffff" } } } } }