RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
Forums → Tests →

Including an sprite

Subscribe to Including an sprite 22 posts, 11 voices

 
Mar 19, 2021 10:04am
Avatar Paul Sprangers (346) 202 posts

Here’s a sprite:

[edit: no, not like this]

[edit: hm, nor this]

[edit: Okay, a sprite won’t display, but a PNG will)

 
Mar 19, 2021 10:37am
Avatar Rick Murray (539) 10791 posts

What, you mean on the forum?

Standard web formats – JPEG, PNG, or GIF…

(there are others, with varying degrees of support, best stick with one of the main three)

 
Mar 19, 2021 10:57am
Avatar Paul Sprangers (346) 202 posts

Yes, I see. But since this forum is exclusively aimed at RISC OS, I thought that maybe it will display sprites too. Well, this just shows my broadly extended ignorance.

 
Mar 19, 2021 11:14am
Avatar Andreas Skyman (8677) 164 posts

I like the idea! Lets make an RFC for Sprites in browsers! ;)

 
Mar 19, 2021 2:54pm
Avatar Alan Adams (2486) 693 posts

But since this forum is exclusively aimed at RISC OS, I thought that maybe it will display sprites too.

It’s the browser that does the display. Does it work in Netsurf on RiscOS I wonder? Probably not, since that would be a RiscOS only feature of a cross-platform browser, but easier to implement on RiscOS as the rendering code already exists.

 
Mar 19, 2021 3:33pm
Avatar Martin Avison (27) 1136 posts

Yes – it works in Netsurf on RISC OS … but not in FF on Win10.

 
Mar 19, 2021 6:20pm
Avatar Steve Pampling (1551) 6767 posts

Yes – it works in Netsurf on RISC OS … but not in FF on Win10.

So the solution for Windows (and Mac and Linux) users is to run RPCEmu and run NetSurf in that :)

 
Mar 19, 2021 8:17pm
Avatar Alan Adams (2486) 693 posts

I wonder whether it works in Netsurf on other platforms. My guess would be not…

 
Mar 20, 2021 12:32am
Avatar Steffen Huber (91) 1685 posts

I wonder whether it works in Netsurf on other platforms. My guess would be not…

The NetSurf developers produced LibROSprite, which looks a lot like a generic Sprite decoding library. So my guess would be yes.

http://www.netsurf-browser.org/projects/librosprite/

 
Mar 20, 2021 12:36pm
Avatar Bryan (8467) 244 posts

Yes – it works in Netsurf on RISC OS … but not in FF on Win10.

It works if netsurf is reading a local file.

But, I have failed to make it work when fetching a sprite file from a web server, even when I can alter the headers given by the web server to give the file type image/sprite.

HTTP/1.0 200 OK
Content-Type: image/sprite
or
HTTP/1.0 200 OK
Content-Type: image/ROSprite
or
HTTP/1.0 200 OK
Content-Type: image/LibROSprite
or
HTTP/1.0 200 OK
Content-Type: sprite

should it be something else?

 
Mar 20, 2021 1:59pm
Avatar Dave Higton (1515) 2430 posts

Try Content-Type: image/x-riscos-sprite

I haven’t tried it myself, but the suggestion comes from looking at my MimeMap file.

 
Mar 20, 2021 5:04pm
Avatar Bryan (8467) 244 posts

That works on my LAN.

But not when I use EE Mobile to access the Internet

 
Mar 20, 2021 5:31pm
Avatar David J. Ruck (33) 654 posts

But, I have failed to make it work when fetching a sprite file from a web server, even when I can alter the headers given by the web server to give the file type image/sprite.

Try image/x-riscos-sprite as that’s the string in the !RunImage.

You could give image/x-artworks a try too.

 
Mar 21, 2021 10:03am
Avatar Bryan (8467) 244 posts

Try Content-Type: image/x-riscos-sprite

That works on my Local Area Network.

But, when the PNG in the first post is converted to a sprite, the size is 340K!

And I do not have a public facing web server which will serve a 340K graphic.

And as they will only work with with Netsurf on RISC OS, I am going to borrow the phrase from the Dragon’s Den and say “I’m Out”.

 
Mar 21, 2021 10:30am
Avatar Steve Pampling (1551) 6767 posts

hen the PNG in the first post is converted to a sprite, the size is 340K!

Now you know one of the reasons the PNG format was created, portability and compression being in the remit.

Difficult bit – use of images.
Training so called web developers to actually reduce the file size rather than scale a full screen image to an area worthy of a thumbnail would be really useful to speed up the web.

 
Mar 21, 2021 10:43am
Avatar John WILLIAMS (8368) 343 posts

Training so called web developers to actually reduce the file size rather than scale a full screen image to an area worthy of a thumbnail would be really useful to speed up the web.

Not so important nowadays, but this was the initial rationale behind the development of my Pic_Index – though it still has many other useful features!

In the days of old-fashioned dial-up modems, though…

 
Mar 21, 2021 11:21am
Avatar Steve Pampling (1551) 6767 posts

In the days of old-fashioned dial-up modems, though…

That’s the problem attitude “oh the network is faster now, so it doesn’t matter”, but it does. “Not so important” ??
You’ve fallen victim to the brainwashing. It creeps in like MS code bloat crept in.

There’s plenty of info on optimising pages, the developers I deride just don’t look at or simply don’t understand.
A quick Google query gets you many hits related to web page size problems. Example 1 and Example2

Just in these pages I’ve seen people complaining about the amount of code that Google put into the entry page.

Think how much swifter all the things we do on the net could be if the idle developers cleaned up their act.

 
Mar 21, 2021 11:31am
Avatar Alan Adams (2486) 693 posts

and if you put photos or videos onto Facebook, you can save yourself time and/or failures to load by scaling down the image sizes first. It won’t reduce the quality of the image the users see,, as Facebook scales them down anyway.

 
Mar 21, 2021 12:09pm
Avatar Steve Pampling (1551) 6767 posts

I think you could substitute many other social media platforms for Facebook in that statement.

I say “think” in that since the ROOL site is about as near to social media as I come.

 
Mar 21, 2021 3:33pm
Avatar Andreas Skyman (8677) 164 posts

Training so called web developers to actually reduce the file size rather than scale a full screen image to an area worthy of a thumbnail would be really useful to speed up the web.

A colleague of mine once happily included raw camera images, the largest a 25 mb jpeg, in customer facing web-application, meant for use under conditions where internet speed is restricted. I managed to get all of them under 500k/image, which is still too large, but at least a considerable improvement…

 
Mar 21, 2021 4:30pm
Avatar Steve Pampling (1551) 6767 posts

Factor of 50 reduction and probably similar increase in download speed, and the thanks you got?

 
Mar 22, 2021 11:13am
Avatar Andreas Skyman (8677) 164 posts

Factor of 50 reduction and probably similar increase in download speed, and the thanks you got?

Approximately a 50th of what I deserved? ;)

Reply

To post replies, please first log in.

Forums → Tests →

Search forums

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Description

Test posts.

Voices

  • Paul Sprangers (346)
  • Rick Murray (539)
  • Andreas Skyman (8677)
  • Alan Adams (2486)
  • Martin Avison (27)
  • Steve Pampling (1551)
  • Steffen Huber (91)
  • Bryan (8467)
  • Dave Higton (1515)
  • David J. Ruck (33)
  • John WILLIAMS (8368)

Options

  • Forums
  • Login
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Beast theme is based on Beast's default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Beast © 2006 Josh Goebel and Rick Olson
This site runs on Rails

Hosted by Arachsys