From: Paul Sprangers Subject: Reading the dimensions of a sprite or JPEG on disk Newsgroups: comp.sys.acorn.programmer Date: Sat, 28 May 2022 12:08:24 +0200 (Custom) Message-ID: <59ef9cf586Paul@sprie.nl> User-Agent: Pluto/3.18 (RISC OS/5.29) NewsHound/v1.52-32 Organization: None Path: csiph.com!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail Lines: 18 Injection-Date: Sat, 28 May 2022 12:08:34 +0200 Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com" X-Received-Bytes: 1090 Xref: csiph.com comp.sys.acorn.programmer:6366 Dear all, I would like to know the x and y dimensions of a sprite or a JPEG on disk. For a JPEG, I found the following OS call: SYS "JPEG_FileInfo",0,path$ TO ,,x%,y% "path$' is the path of the JPEG in question, obviously. However, x% and y% are always 0. What am I doing wrong? And does a similar call exist for sprites? OS_SpriteOp only examines sprites in a sprite pool, not on disk - as far as I understand... Kind regards, Paul -- https://riscos.sprie.nl