itnewsbot, to 3DPrinting

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/ #g-code

hywan, to random
@hywan@fosstodon.org avatar

Compression Dictionary Transport, http://useasdictionary.com/.

> Compression dictionaries are bits of compressible content known ahead of time. They are being used by compression engines to reduce the size of compressed content.

It’s pretty efficient. A proposal is being designed to support compression dictionary with HTTP. It can be pretty impactful on the Web in terms of network bandwidth and speed.

ButterflyOfFire, to VintageOSes French
@ButterflyOfFire@mstdn.fr avatar

Il fut un temps, j’utilisais beaucoup pour compresser mes fichiers.

https://fr.m.wikipedia.org/wiki/Lha

gianni, to InitialD
@gianni@disobey.net avatar

Today I released rav1ator-cli, a little terminal script that lets you easily interface with Av1an among other things! Read more about it & learn how to install here: https://wiki.x266.mov/docs/utilities/rav1ator-cli

3TomatoesShort, to random
@3TomatoesShort@disabled.social avatar

I don't think I have enough followers yet for this to reach the right people, but just in case: if you wear garments for & it seems to help, how can you tell it's helping? Changes observed in HR, improved symptoms, or just "feels better"? Some other way?

thomy2000, to linux

And THAT's why you use compression. This is the language server log from Neovim. It would take 114MB if not for compression which reduced it to a tiny 3.9MB!! Save space, save your SSD lifespan.

itnewsbot, to machinelearning

AI language models can exceed PNG and FLAC in lossless compression, says study - Enlarge (credit: Getty Images)

Effective compression is about... - https://arstechnica.com/?p=1969616

orhun, to github
@orhun@fosstodon.org avatar

Came across to an interesting bot today!

🍀 imgbot: Crawl through all of your image files in GitHub and losslessly compress them.

⭐ GitHub: https://github.com/imgbot/Imgbot

🚀 Example PR: https://github.com/dracula/alacritty/pull/17

itnewsbot, to ArtificialIntelligence

Text Compression Gets Weirdly Efficient With LLMs - It used to be that memory and storage space were so precious and so limited of a r... - https://hackaday.com/2023/08/27/text-compression-gets-weirdly-efficient-with-llms/

itnewsbot, to InitialD

Explore FFmpeg From the Comfort of your Browser - If you’re looking to manipulate video, FFmpeg is one of the most powerful tools ou... - https://hackaday.com/2023/08/27/explore-ffmpeg-from-the-comfort-of-your-browser/

mimame, to rust

is a written in which works better than any function wrapper to the compressors.

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

Edent, to random
@Edent@mastodon.social avatar

🆕 blog! “Sometimes gzip beats Brotli”

Perhaps this was obvious to you, but it wasn't to me. So I'm sharing in the hope that you don't spend an evening trying to trick your webserver into doing something stupid. For years, HTTP content has been served with gzip compression (gz). It's basically the same sort of compression algorithm you get in a […]

👀 Read more: https://shkspr.mobi/blog/2023/08/sometimes-gzip-beats-brotli/

#compression #http

ericheiken,

@Edent
Compress your gzip WITH Brotli for ultra-compression.

#compression #http #seo

rooster111, to fediverse

Are there any platforms that don't compress or others ruin image uploads? reduces many images to under 2000 pixels in either direction, usually in the 1600-1800 range from what I've seen.

amadeus, to linux
@amadeus@mstdn.social avatar

Can anyone recomend a #videoeditor for #linux that is ideally #gtk based and offers #imagestabilization and #audio #compression among other features? I intend to replace #davinciresolve with an #opensource offering. I am not a #pro #editor but I still enjoy a well designed, capable #app with a solid feature set for my intermediate #videoediting. Many thanks in advance!

jupiter, to amateurradio

Tired: Morse code was the first digital mode
Wired: Morse code was the first variable length encoding

kkarhan,

@vk6flab @jupiter for the condition of "static lossless " the bar is extremely low.

OFC it won't be even remotely efficient when compared to modern compression...
Even will run circles around it, not to mention , or high-efficiency vocoders like ....

https://mstdn.social/@kkarhan/110692504545982742

j9t, to random
@j9t@mas.to avatar

📼 From the archives:

📝 Image : How to Super-Easily Set Up Automated Base :

https://meiert.com/en/blog/easy-automated-image-compression/

mynacol, to NixOS German

@pi_crew I've seen you working a bunch on the module.

The last days I researched a bit on HTTP . What do you think about adding pre-compressed versions ( and ) of static assets during the Nextcloud building phase? Is the rise in storage space reasonable? It would reduce CPU usage and transmission size.

Optionally we could use zopfli for gzip to achieve even greater compression (slower).

It seems e.g. mastodon does this already: https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/servers/mastodon/default.nix#L111

RL_Dane, to random
@RL_Dane@fosstodon.org avatar

Just sent a photo to my family group with a photo of my grandma and the following caption:

"Title: "Stylish Lady in the Red Hat"
Year: 2023
Medium: RGB value array converted to YUV colorspace and quantized via DCT to JFIF format"

I WONDER if they'll figure out that I'm a ... 😜

castarco, to javascript Spanish
@castarco@hachyderm.io avatar

I've been playing a bit with to create an interactive simulation of the algorithm for my next bog post :) .

I know that it's not very visually appealing, but frontend is not my trade 😅.

video/mp4

sohkamyung, to random
@sohkamyung@mstdn.io avatar

The story of how David Huffman came up with his lossless compression scheme, due to a challenge by his professor.

"Huffman’s approach has turned out to be so powerful that, today, nearly every lossless compression strategy uses the Huffman insight in whole or in part."

https://www.quantamagazine.org/how-lossless-data-compression-works-20230531/

Edent, to random
@Edent@mastodon.social avatar

🆕 blog! “Selectively Compressed Images - A Hybrid Format”

I have a screenshot of my phone's screen. It shows an app's user interface and a photo in the middle. Something like this: If I set the compression to be lossy - the photo looks good but the UI looks bad. If I set the compression to be lossless - the UI looks good but […]

👀 Read more: https://shkspr.mobi/blog/2023/06/selectively-compressed-images-a-hybrid-format/

blog, to ComputerScience
@blog@shkspr.mobi avatar

Selectively Compressed Images - A Hybrid Format
https://shkspr.mobi/blog/2023/06/selectively-compressed-images-a-hybrid-format/

I have a screenshot of my phone's screen. It shows an app's user interface and a photo in the middle. Something like this:

Screenshot of a camera app on a phone. The middle is a photo, the sides show the user interface.

If I set the compression to be lossy - the photo looks good but the UI looks bad.
If I set the compression to be lossless - the UI looks good but the filesize is huge.

Is there a way to selectively compress different parts of an image? I know WebP and AVIF are pretty magical but, as I understand it, the whole image is compressed with the same algorithm and the same settings.

There are two ways to do this. The impossible way and the cheating way.

Selective Compression

In theory it should be possible to tell an image format to compress some chunks of an image with a different compression algorithm.

And yet... none of the documentation I've found shows that's possible.

GiMP's native XCF and Photoshop's PSD files work; they store different layers each of which can have a different filetype. I understand that TIFF and .djvu also have that capability.

But those sorts of files don't display in web browsers.

So...

Let's Cheat!

It's possible to use an SVG to embed multiple images of different formats. SVG is used as, effectively, a layout engine.

The syntax is relatively straightforward:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1080 512">   <image width="1080" height="512" x="0" y="0"      xlink:href="data:image/jpeg;base64,..........."   />   <image width="1080" height="512" x="0" y="0"      xlink:href="data:image/png;base64,..........."   /></svg>

That draws the JPG then draws the PNG on top of it. If the PNG has a transparent section, the JPG will show through. The JPG can be set to as low a quality as you like and the PNG remains lossless.

Here's what it looks like - click for full size:

https://shkspr.mobi/blog/wp-content/uploads/2023/06/Mixed-Compression.svg

Embedded images are Base 64 encoded, which does lose some of the compression advantages. But, overall, it's smaller than a full PNG and better quality than a full JPG.

Look, if it's stupid but it works it's not stupid.

But surely there must be a way of doing this natively?

https://shkspr.mobi/blog/2023/06/selectively-compressed-images-a-hybrid-format/

itnewsbot, to tech

Cancel your WinRAR trial: Windows will soon support RAR, gz, 7z, and other archives - Enlarge (credit: Andrew Cunningham)

Buried among the AI announ... - https://arstechnica.com/?p=1941640

jbzfn, to fediverse
@jbzfn@mastodon.social avatar

🎞️ Quickly resize a video with FFmpeg/Vaapi for Mastodon
@paulox

「 Mastodon’s limitations on media files that can be uploaded have changed in recent months, but still remain stringent for media produced by some devices.
Here are the new limits:

maximum size: 99 MB
maximum resolution: 3840 x 2160px (4K UHD)
maximum frame rate: 120 fps
allowed extensions: .webm .mp4 .m4v .mov 」


https://www.paulox.net/2023/05/03/quickly_resize-a-video-with-ffmpeg-for-mastodon

Imoptimal,

@jbzfn @paulox

I've found a simple (for ), that enables photo and video .

It provides several options of the resolution/quality/size output you can select.

Haven't tried anything else to be honest, so not sure if it's the best option - but it works with few clicks.

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