Page 3 of 11

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Sun Dec 14, 2025 1:56 pm
by fraenkiman
Hello macadoum,

Thank you for your email.
macadoum wrote: Sat Dec 13, 2025 5:36 pm ... On the left, the original file on my computer. On the right, after the upload.
The error is not in the preview JS, but in the defective alpha blending in the image (alpha/RGB + interpolation).

The PNG does not have alpha=0 everywhere in the areas that are supposed to be "transparent", but rather a large number of pixels with very small, but ≠0 alpha (e.g., 2–6) and ‘garbage’ RGB values. During normal browser rendering, these RGB values are slightly offset against the background -> this looks like "scanlines".

If you open the image in a separate browser tab or Gimp, the messed-up transparent area is also displayed as "scanlines".

Therefore, no correction is necessary in the preview JS.

Best regards and have a relaxing Sunday,
Frank

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Sun Dec 14, 2025 5:34 pm
by macadoum
Thank you Fraenkiman

Something else is flatpress maybe needs an automatic resizing tool because the image does not fit in the blog entry : https://macadoum.free.nf/

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Mon Dec 15, 2025 1:37 am
by fraenkiman
macadoum wrote: Sun Dec 14, 2025 5:34 pm Something else is flatpress maybe needs an automatic resizing tool because the image does not fit in the blog entry : https://macadoum.free.nf/
Theoretically, this would be possible, but only on the client side with JavaScript. The script would have to measure the containers
#main .entry figure, #main .entry .photoswipe, #main .entry .thumbnail
and the screen width (PC screen to smartphone).

Replace the file core.theme.php in fp-includes/core/ with this one and test it.
core.theme.zip
(7.64 KiB) Downloaded 124 times
Have a great start to the new week!
Frank

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Mon Dec 15, 2025 4:05 pm
by macadoum
fraenkiman wrote: Mon Dec 15, 2025 1:37 am
macadoum wrote: Sun Dec 14, 2025 5:34 pm Something else is flatpress maybe needs an automatic resizing tool because the image does not fit in the blog entry : https://macadoum.free.nf/
Theoretically, this would be possible, but only on the client side with JavaScript. The script would have to measure the containers
#main .entry figure, #main .entry .photoswipe, #main .entry .thumbnail
and the screen width (PC screen to smartphone).

Replace the file core.theme.php in fp-includes/core/ with this one and test it.

core.theme.zip

Have a great start to the new week!
Frank
Wonderful, now it's working as intended : https://macadoum.free.nf/

Will you add this new feature directly into the next version ?

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Tue Dec 16, 2025 11:40 pm
by fraenkiman
macadoum wrote: Mon Dec 15, 2025 4:05 pm Will you add this new feature directly into the next version ?
I added this stylesheet patch for the leggero theme.

Best regards
Frank

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Wed Dec 17, 2025 8:00 pm
by macadoum
I'm unable to embed a youtube video

After having read the wiki, the code [video=https://youtube.com/vKv2BM5dpxw] shoud embed the player. But I got a message asking me to enable Javascript ?

Image

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Wed Dec 17, 2025 10:59 pm
by fraenkiman
macadoum wrote: Wed Dec 17, 2025 8:00 pm I'm unable to embed a youtube video
...
Image
Well, the page must exist:
Screenshot 2025-12-17 234535.png
Screenshot 2025-12-17 234535.png (63 KiB) Viewed 1252 times
Try this:
Screenshot 2025-12-17 234902.png
Screenshot 2025-12-17 234902.png (7.28 KiB) Viewed 1252 times

Code: Select all

[video="https://www.youtube.com/watch?v=o6rBK0BqL2w"]
Best regards
Frank

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Wed Dec 17, 2025 11:19 pm
by fraenkiman
I just noticed that it was incorrectly documented in the wiki. Now corrected.

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Thu Dec 18, 2025 8:07 am
by macadoum
Thank you fraenkiman but the result is still the same, the embedded player doesn't load.

For exemple : [video="https://www.youtube.com/watch?v=WIepaW85gtU"]

Re: Warm-up: FlatPress 1.5 - Community Test

Posted: Thu Dec 18, 2025 7:42 pm
by fraenkiman
Tough nut to crack, it was hidden in the French language file. That's why the JS couldn't load. Should work now.

Replace the existing file lang.fr-fr.php in the directory fp-plugins/gdprvideoembed/lang/ with this file.
lang.fr-fr.zip
(1.38 KiB) Downloaded 134 times
Corrected with f9cd2ca

Screenshot 2025-12-18 205412.png
Screenshot 2025-12-18 205412.png (128.1 KiB) Viewed 1200 times
Best regards,
Frank