boilingsteam, to linux
@boilingsteam@mastodon.cloud avatar
tdp_org, to webdev
@tdp_org@mastodon.social avatar

I enabled Brotli compression on the CDN which serves the main BBC websites (www.bbc.co.uk. www.bbc.com etc.) outside the UK this morning.
Over ~4 hours, we're seeing a mean of ~20% better compression (smaller responses) via Brotli & ~95% of responses being Brotli now.
I've not had time to look in detail at performance but there doesn't look to be a significant change (LMK if you see diferent!).
(the spikes are breaking news events linking to a large "live" pages)

tdp_org,
@tdp_org@mastodon.social avatar

A little update on our enabling of Brotli for www.bbc.co.uk, www.bbc.com etc.
We're seeing compression improvements of roughly 15-40% over gzip. 15% is for HTML only, 40% is the overall. The caveat is that some clients which don't support Brotli request unusual content so this may be skewed to some degree.
I'll cover an issue which has cropped up in the next post.

tdp_org,
@tdp_org@mastodon.social avatar

Our stack is: Fastly -> GTM (BBC CDN) -> Belfrage (BBC routing) -> origins for most of our modern web pages.
Currently, only Fastly supports Brotli, the others do gzip, deflate & no compression.
Fastly strips gzip,deflate from the accept-encoding header sent to origin so our layers all return uncompressed content which means they're using more egress bandwidth. It's not a huge problem for us but something I thought might be useful for others to know.

tdp_org, to webdev
@tdp_org@mastodon.social avatar

Somehow, we never got round to enabling Brotli compression on www.bbc.co.uk & www.bbc.com so I am just in the final throws of deploying that.
So far in ~1 hour on our staging site, I'm seeing ~24% smaller files under Brotli (vs. gzip). 🤞this (or better) also happens on live which'll be tomorrow.

janriemer, to ArtificialIntelligence

https://eisenwave.github.io/voxel-compression-docs/index.html

"The goal of the project is to develop an efficient for compressing voxel models. As an input format, an unsorted list of 3D integer coordinates and attribute data is used. Multiple methods for encoding geometry data including Cuboid Extraction (CE), Sparse (SVOs) with Space-Filling Curves, and Run-Length Encoding (RLE) are explained and then compared in terms of complexity, ratio, and real life performance."

sebsauvage, to random French
@sebsauvage@framapiaf.org avatar


7zip est vraiment l'un des meilleurs logiciels de compression, mais il faut avouer que zpaq fait parfois des merveilles.

Là je suis en train de compresser Bioshock Infinite (oui il va arriver sur le partage😉)

Taille : 41 Go
7z (en -mx9 + paramètres pour encore améliorer): 32 Go
Zpaq (-m4) : 21,2 Go !

Il arrive à gagner 10,8 Go par rapport à 7zip ! 😮

Merci à l'étape de déduplication de zpaq : Il passe de 41 à 27 Go rien qu'avec la déduplication (avant même l'étape compression).

gee, to accessibility French
@gee@framapiaf.org avatar

[Nouvelle BD rendue accessible] Un demi de compression

Découvrez comment marchent ces programmes qui amincissent vos fichiers…

https://grisebouille.net/un-demi-de-compression/

niksirbi, to ilaughed
@niksirbi@neuromatch.social avatar

First mast post! Time to stop lurking in the background :blobrat_peek:

Anyone here knows some good resources on video compression? How the various codecs work, what are the relevant tradeoffs etc.

For context, I have some grasp on image compression and the fundamentals of digital signal processing, but video compression has so far eluded me.

I’ve found this blogpost helpful http://blog.loopbio.com/video-io-1-introduction.html, so any posts/papers/courses in that vain would be highly appreciated.

davidbisset, to random
@davidbisset@phpc.social avatar

Interesting: why lowercase letters save .

https://endtimes.dev/why-lowercase-letters-save-data/

Text is more effective when…

  • There's a smaller variety of characters in the text
  • The less common characters use used less frequently
  • Characters or groups of characters are repeated more often.

Replacing uppercase characters with their more common lowercase counterparts helps with all three of these.

gianni, to Samsung
@gianni@disobey.net avatar

Apparently the Galaxy S24's "downloadable" Gallery app (not sure what this means) supports JPEG-XL compression in RAW images!

> Downlodable App
> 1. Expert RAW
> The basic resolution has been improved from 12MP to 24MP, and image quality and tone in low light have been improved through nightography technology collaboration.
> In addition, Digital ND filter, which was supported as beta in previous S23, is officially provided and Auto mode is provided for user convenience.
> Additionally, storage capacity has been reduced while maintaining image quality by providing JPEG XL format.

Link: https://r2.community.samsung.com/t5/CamCyclopedia/Introducing-the-Galaxy-S24-Camera-Gallery/ba-p/15350511

Again, not super well-versed in what specifically this means for S24 phones, but cool to see JXL!

berndandeweg, to Iceland Dutch
@berndandeweg@mastodon.nl avatar

Think to have pinpointed the folded asphalt that formed in close south to the small fissure. That is another sign there is some (extension with a component) going on. Same as the en-echelon steps in the . Orientation of Maximum horizontal in the order of 050-230.

image/jpeg
image/jpeg

gianni, to ilaughed
@gianni@disobey.net avatar

Aviator 0.5.0 is out today, featuring the SVT-AV1 fork I co-develop: SVT-AV1-PSY. Go check it out!

Aviator 0.5.0 release: https://github.com/gianni-rosato/aviator/releases/tag/0.5.0

#av1 #encoding #video #transcoding #compression

Edent, to ComputerScience
@Edent@mastodon.social avatar

🆕 blog! “Compressing Text into Images”

(This is, I think, a silly idea. But sometimes the silliest things lead to unexpected results.) The text of Shakespeare's Romeo and Juliet is about 146,000 characters long. Thanks to the English language, each character can be represented by a single byte. So a plain Unicode text file of the play is about 142KB. In […]

👀 Read more: https://shkspr.mobi/blog/2024/01/compressing-text-into-images/

blog, to ComputerScience
@blog@shkspr.mobi avatar

Compressing Text into Images
https://shkspr.mobi/blog/2024/01/compressing-text-into-images/

(This is, I think, a silly idea. But sometimes the silliest things lead to unexpected results.)

The text of Shakespeare's Romeo and Juliet is about 146,000 characters long. Thanks to the English language, each character can be represented by a single byte. So a plain Unicode text file of the play is about 142KB.

In Adventures With Compression, JamesG discusses a competition to compress text and poses an interesting thought:

Encoding the text as an image and compressing the image. I would need to use a lossless image compressor, and using RGB would increase the number of values associated with each word. Perhaps if I changed the image to greyscale? Or perhaps that is not worth exploring.

Image compression algorithms are, generally, pretty good at finding patterns in images and squashing them down. So if we convert text to an image, will image compression help?

The English language and its punctuation are not very complicated, so the play only contains 77 unique symbols. The ASCII value of each character spans from 0 - 127. So let's create a greyscale image which each pixel has the same greyness as the ASCII value of the character.

Here's what it looks like when losslessly compressed to a PNG:

Random grey noise.

That's down to 55KB! About 40% of the size of the original file. It is slightly smaller than ZIP, and about 9 bytes larger than Brotli compression.

The file can be read with the following Python:

from PIL import Imageimage  = Image.open("ascii_grey.png")pixels = list(image.getdata())ascii  = "".join([chr(pixel) for pixel in pixels])with open("rj.txt", "w") as file:    file.write(ascii)

But, even with the latest image compression algorithms, it is unlikely to compress much further; the image looks like random noise. Yes, you and I know there is data in there. And a statistician looking for entropy would probably determine that the file contains readable data. But image compressors work in a different realm. They look for solid blocks, or predictable gradients, or other statistical features.

But there you go! A lossless image is a pretty efficient way to compress ASCII text.

https://shkspr.mobi/blog/2024/01/compressing-text-into-images/

jan, to random
@jan@kcore.org avatar

What do people use to do offsite backups with?

Currently I have a pool, on which I take a daily snapshot of certain datasets, clone them, and send those using to a (with , and activated).

Currently I have snapshots going back to mid 2022, which are being pruned according to a schedule, but I've already exceeded 5TB of storage.

I'd like something that'd perhaps slightly less convoluted, but also doesn't break the bank. I'd love to use straight ZFS but that is priced out of my budget.

Edent, to random
@Edent@mastodon.social avatar

🆕 blog! “What's the smallest file size for a 1 pixel image?”

There are lots of new image compression formats out there. They excel at taking large, complex pictures and algorithmically reducing them to smaller file sizes. All of the comparisons I've seen show how good they are at squashing down big files. I wanted to go the other way. How good are modern codecs at …

👀 Read more: https://shkspr.mobi/blog/2024/01/whats-the-smallest-file-size-for-a-1-pixel-image/

f_dion, to ArtificialIntelligence
@f_dion@mastodon.online avatar

Hadnt realized that Lempel and Ziv both died at the beginning of the year, within a few weeks of each other. Strange coincidence.

gianni, to ilaughed
@gianni@disobey.net avatar

Hi everyone! I wanted to introduce Av1an Command Generator, a relatively simple tool I wrote in Zig for generating Av1an commands for based on a limited set of parameters. GitHub link is below:

https://github.com/gianni-rosato/av1an-command-gen

The bar to entry for understanding effective Av1an scripting is very high simply because there are a lot of well-documented ways to incorrectly set your parameters and very few who know what is psychovisually optimal. I am not one of those few, but because I know members of the AV1 community who've poured great time and effort into researching this kind of stuff, I am able to build from what they've learned. My more advanced tool, rAV1ator CLI, is also based on this research. I hope you enjoy!

scy, to ArtificialIntelligence
@scy@chaos.social avatar

I'm looking for a or something.

I have a process that generates a JSON document (> 1 MB, < 1 GB) once per week. These documents will be pretty similar. Some data will be modified, some will be added.

I'd like to keep all of these documents, in a compressed way, benefiting from the similarities between them, as if I'd compressed a concatenation of all of them, but without having to recompress everything each week.

Ideas? If possible, only using 's standard lib.

bagder, to random
@bagder@mastodon.social avatar

Making it harder to do wrong

is written in C. We try to write better C to reduce the risk of future vulnerabilities.

https://daniel.haxx.se/blog/2023/12/13/making-it-harder-to-do-wrong/

kkarhan,
@kkarhan@mstdn.social avatar

@Madic @bagder nodds in agreement

The cost-gain balance in terms of optimizing code for size is completely trash, because maintainable and documented code (even if it's just comments) is more important longtern than saving a few bytes omnitting line breaks...

Expechally when like does a better job at making things smaller than any coder could within i.e. alone...

Also I'm not writing that has to obfuscate everything to make harder...

josephscott, to random

@bagder have you considered enabling compression by default in curl/libcurl? Given the large number of bots and other automation on the net that make use of it, seems like having that on by default could have a sizable impact on the amount of global network traffic.

nixCraft, to random
@nixCraft@mastodon.social avatar

If you could code any fictional technology from movies or books, what would it be?

kkarhan,
@kkarhan@mstdn.social avatar

@landley @nixCraft @OS1337 makes sense...

also #gzip is the lowest common denominator of #compression on #linux, so it does make sense given that #toybox aims to provide a good yet space-efficient userland, even if that means i.e. vi instead of neovim or ne.

And given that #mkroot is a minimum viable product of a complete toybox/linux distro that is able to reproduce itself from source, it's inevitably going to be big.

A "self-hosting" distro that fits on 1440kB is very likely impossible...

orhun, to rust
@orhun@fosstodon.org avatar

Thanks to this tool I never have to remember the arguments to "tar" anymore ✨

🦀 ouch: Painless compression and decompression in the terminal - written in Rust.

⭐ GitHub: https://github.com/ouch-org/ouch

Satori, to Plumbing
@Satori@mastodon.thirring.org avatar

Putting this out to the Fediverse in case someone knows what this pipe is.

Our water tank has died 😭 (and the replacement has to be energy efficient 😭 so it is $3400 😭!) but there is also now a pipe that seems to come out of the furnace and drain into the water main. Does anyone know what it’s for? Is it for A/C? We haven’t had the A/C on for months, of course. It has started to drip, and wondering so I can tell the plumbers we have another problem when they come Thursday..

cazabon,

@Satori

Okay. There's one pipe coming out of the furnace a few inches above the floor. That's its condensate drain line.

The other one is from your water heater, and is its condensate drain line. It's joining the other one with a "T" fitting, but it looks like it's some kind of rather than a "glued" joint, which they usually do because it's cheaper and lasts forever.

The pipe is . It's not actually joined with glue.

[...]

itnewsbot, to 3DPrinting
@itnewsbot@schleuss.online avatar

G-code Goes Binary with Proposed New Format - G-code is effective, easily edited, and nearly ubiquitous when it comes to anythin... - https://hackaday.com/2023/11/28/g-code-goes-binary-with-proposed-new-format/ #3dprinterhacks #3dprintering #compression #prusaslicer #3dprinting #encoding #binary #g-code

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • khanakhh
  • JUstTest
  • InstantRegret
  • GTA5RPClips
  • Durango
  • normalnudes
  • cubers
  • tacticalgear
  • cisconetworking
  • tester
  • modclub
  • provamag3
  • anitta
  • Leos
  • lostlight
  • All magazines