Olissipo

joined 2 years ago
[–] Olissipo@programming.dev 13 points 1 week ago (1 children)

The OP on Mastodon shared screenshots of the replies (can't tell if they were originally in the forum post, or if it's a DM):

https://nextcloud.aztinet.eus/s/sxqEDJDZGp7a9rx

[–] Olissipo@programming.dev 57 points 1 week ago (25 children)

The post on Mastodon has a screenshot of the post edit history:

Screenshot of a forum post, showing the versions before and after an edit. The sentence "I am queer, I am technically a furry too" was edited into "I am technically a furry too"

And a copy-pasted response from a moderator (the most relevant bit):

So in my opinion, if your intention was to show political support for diversity, you should avoid using this flag. This will allow us to refuse the use of a flag for instance saying 'non-queer', If we allow your flag, then we have to admit also other similar political flags, both supporting and opposing diversity.

[–] Olissipo@programming.dev 4 points 3 months ago* (last edited 3 months ago) (1 children)

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.

[–] Olissipo@programming.dev 4 points 3 months ago* (last edited 3 months ago) (3 children)

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

[–] Olissipo@programming.dev 7 points 3 months ago (2 children)

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

[–] Olissipo@programming.dev 2 points 3 months ago

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

[–] Olissipo@programming.dev 1 points 3 months ago

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.

[–] Olissipo@programming.dev 74 points 3 months ago* (last edited 3 months ago) (41 children)

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)

[–] Olissipo@programming.dev 6 points 11 months ago* (last edited 11 months ago)

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.

[–] Olissipo@programming.dev 3 points 1 year ago* (last edited 1 year ago) (1 children)

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).

1
submitted 1 year ago* (last edited 1 year ago) by Olissipo@programming.dev to c/wordpress@lemmy.world
 

This might not be new, I hadn't dealt with WordPress/WooCommerce in a while.

Currently (v8.8.2) in a new WooCommerce installation the "Checkout" page is created using blocks, like so:

<!-- wp:woocommerce/checkout-payment-block -->
<div class="wp-block-woocommerce-checkout-payment-block"></div>
<!-- /wp:woocommerce/checkout-payment-block -->

(...)

The problem

This might introduce breaking changes to the plugins and themes you normally use. For example, I couldn't add a new field - programatically or using a plugin.

The fix

Remove the blocks and revert to using the shortcode:

[woocommerce_checkout]

[–] Olissipo@programming.dev 3 points 1 year ago

The band played 2 early albums + their latest one in sequence. Listening to whole albums in one go was great for many reasons.

view more: next ›