jersou / studio-pack-generator

Convert a folder or a RSS URL to Studio pack zip for Lunii device
MIT License
80 stars 11 forks source link

FS pack file requires image assets to be 320x240 pixels #21

Closed alxbilger closed 1 year ago

alxbilger commented 1 year ago

I have the following issue while trying to convert an archived produced by studio-pack-generator in Studio.

2023-07-27 16:45:57,193 [ERROR] [s.w.s.LibraryService]: Failed to convert archive format pack to FS format
java.lang.IllegalArgumentException: FS pack file requires image assets to be 320x240 pixels.
        at studio.core.v1.writer.fs.FsStoryPackWriter.write(FsStoryPackWriter.java:124)
        at studio.webui.service.LibraryService.addConvertedFsPackFile(LibraryService.java:322)
        at studio.webui.api.LibraryController$2.run(LibraryController.java:102)
        at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
        at java.base/java.util.TimerThread.run(Timer.java:516)
Exception in thread "Timer-0" java.lang.RuntimeException: Failed to convert archive format pack to FS format
        at studio.webui.service.LibraryService.addConvertedFsPackFile(LibraryService.java:332)
        at studio.webui.api.LibraryController$2.run(LibraryController.java:102)
        at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
        at java.base/java.util.TimerThread.run(Timer.java:516)
Caused by: java.lang.IllegalArgumentException: FS pack file requires image assets to be 320x240 pixels.
        at studio.core.v1.writer.fs.FsStoryPackWriter.write(FsStoryPackWriter.java:124)
        at studio.webui.service.LibraryService.addConvertedFsPackFile(LibraryService.java:322)
        ... 3 more

And yet I don't see any image different from 320x240 in the zip.

To reproduce:

studio-pack-generator-x86_64-windows.exe https://radiofrance-podcast.net/podcast09/rss_19721.xml
jersou commented 1 year ago

the new release v0.2.9 convert the image files and it should fix your bug. Re run SPG on the "Oli" folder to fix images !

alxbilger commented 1 year ago

It works like a charm! Thank you so much for the responsiveness. You made a great tool. Keep it up!