Skip Navigation

Posts
1
Comments
25
Joined
2 yr. ago

  • Funny you call it magic, what actually does the conversion is Imagick.

    In my project I have it integrated in the upload process. You upload a PNG/JPG and it does its thing. Since it's written in PHP (my project), and PHP has an extension to call Imagick, I didn't need to write any complicated code.

    You can see on this page if your programming language of choice has any integration with Imagick.

    But there's always the command line interface. Depending on your process it may be easier to create a script to "convert all images in a folder", for example.

  • but 2KB vs 200KB is paltry on even a terrible connection in the 2000s).

    You still need to resize the images and choose the right ones (even if only for the device's performance).

    So we might as well do that small extra step and add conversion to the process.

    What I really wish is that we could get more browsers, sites, and apps to universally support more modern formats to replace the overly bloated terribly performing and never correctly pronounced animated formats like GIF with something else like AVIF, webm, webp (this was a roughly ~60MB GIF, and becomes a 1MB WEBP with better performance), or even something like APNGโ€ฆ

    Isn't that the users' fault? And of the websites for allowing those huge GIFs.

    Apparently browsers have supported MP4 for a long time.

    https://caniuse.com/mpeg4

  • Even using the highest compression levels, barely any difference. Not worth it

    If I understand correctly gzip, brotli and similar are best used to compress text.

    Font files also shouldn't be compressed. A TTF file compresses a bit, but a WOFF2 file will be even smaller than that (and WOFF2 also doesn't compress well). So might as well use WOFF/WOFF2

  • For most of the images that I tried you can only see differences with the images side by side. It's really subtle.

    I do have one example for which my config must be bad, compresses a lot but introduces a lot of noise

  • In case you still can't load the image, for the largest width the JPG file has 229.9KB, WEBP has 123.5KB, AVIF has 72KB.

  • I'm working on a project which generates images in multiples sizes, and also converts to WEBP and AVIF.

    The difference in file size is significant. It might not matter to you, but it matters to a lot of people.

    Here's an example (the filename is the width):

    Also, using the <picture></picture> element, if the users' browsers don't support (or block) AVIF/WEBP, the original format is used. No harm in using them.

    (I know this is a meme post, but some people are taking it seriously)

  • MultiViewer (which is an unofficial program, mind you) does support Linux, but you need to download the installer manually to install and update.

    Other than that it works great

  • They started blocking access to the F1TV's website on Firefox...

    Funny how everything works like it used to when I use an extension to pretend to be Chrome

    Fortunately MultiViewer still works

  • This one in South Korea is pretty recent (October 2022).

    A special police team conducted an investigation of the disaster within a few days of it occurring, and concluded on 13 January 2023 that the police and governments' failure to adequately prepare for the crowds, despite a number of ignored warnings, was the cause of the incident.

  • I remember having some issue like that, but I'm not sure if this was the fix.

    Try unchecking "Show desktop notifications when the song changes" on Spotify's settings (right now it's under the Display section).

  • At first glance the difference in width comes from the front wings, which protruded beyond the wheels in the '22 cars.

    So hopefully the wings last longer in wheel to wheel action.

  • restricting the total amount used and basically anything else makes more sense

    Oh you meant eliminate the flow limit, I thought you meant eliminate the fuel itself. And I agree (with the caveat you said, also limiting the total amount).

  • Fellow PT-PT ISO user here. And although I use PT-PT in the OS, both my mechanical keyboards' physical layout is DE ISO, which has most special symbols in the same place. (finding DE keyboards is easier)

    I've considered switching to UK ISO before. Typing brackets "[] {}" and a semicolon ";" is harder in PT-PT. Especially the curly brackets {}, which are really awkward to type with my small hands.

  • I don't agree with the problem they aim to solve with those goals.

    But today it takes several years of mastering tools and frameworks to get to that stage. HTML First principles should allow people to unlock that feeling, and level of mastery, much earlier on in their coding journey.

    The onboarding process can be made easier for devs new to the project (junior or senior) with decent documentation. Just enough install/build the project in their local machine and understand the gist of the technologies.

  • May be a coincidence, but it stopped launching for me too. Worked Monday and Tuesday, yesterday I didn't try to play, today it didn't work.

    Tried:

    • running "verify integrity of game files"
    • forcing Proton,
    • clearing shader cache
    • attempted various launch options, like vulkan, fullscreen, and windowed
    • update all flatpaks (since I installed steam through flatpak)
    • reboot
  • I'm running a 6700XT and weirdly enough it pre-compiled in Linux but not in Windows.

    It's really stuttery for a while in Windows, with low GPU usage and erratic frequency, until it normalizes.

    I'm getting none of that in Linux, smooth from the start in-game. Only getting some weird fps fluctuation in the start menu.

  • Formula 1 @lemmy.world

    Sebastian Vettel interview with Martin Brundle

  • you can easily forget to catch it and handle it properly

    Even if I coded the form by hand and that happened, it's on me, not on the programming language.

    But I don't, I use a framework which handles all that boilerplate validation for me.

  • When you say user, you mean a user of a function? In that case PHP would throw a TypeError, and presumably only happens when developing/testing.

    If you mean in production, like when submitting a form, an Exception may be thrown. In which case you catch it and return some error message to the user saying the date string is invalid.