The Debian-Live Daedalus Starter Kit

Moderator: fredx181

User avatar
Jasper
Posts: 1821
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 895 times
Been thanked: 384 times

Re: The Debian-Live Daedalus Starter Kit

Post by Jasper »

@rcrsn51

Would it be possible to include the Webp format in your PeasyScale utilising FFmpeg?

viewtopic.php?p=92378&hilit=peasyscale#p92378

User avatar
rcrsn51
Posts: 1486
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 424 times

Re: The Debian-Live Daedalus Starter Kit

Post by rcrsn51 »

Jasper wrote: Sun Mar 23, 2025 3:07 pm

Would it be possible to include the Webp format in your PeasyScale utilising FFmpeg?

As usual, these transformations are handled by the command-line tool image-changer which is part of the package. Image-changer is a small, fast C program that uses builtin GTK functions.

Only if GTK recognized Webp in addition to standard graphic formats like PNG.

User avatar
Jasper
Posts: 1821
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 895 times
Been thanked: 384 times

Re: The Debian-Live Daedalus Starter Kit

Post by Jasper »

@rcrsn51

Is this what you are referring to?

gdk-pixbuf.png
gdk-pixbuf.png (54.32 KiB) Viewed 668 times
User avatar
rcrsn51
Posts: 1486
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 424 times

Webp and Peasyscale

Post by rcrsn51 »

1. Working in the Daedalus Starter Kit, I installed from the Debian repo: webp-pixbuf-loader

2. This immediately makes the Viewnior image viewer work with webp images!

3. I patched image-changer and PeasyScale to recognize webp.

4. Package attached. I made webp-pixbuf-loader a dependency.

5. Everything works so far: converting between webp and other formats, changing size, rotating, etc.

[Update] See v3.3 below.

Last edited by rcrsn51 on Sat Mar 29, 2025 2:21 pm, edited 12 times in total.
User avatar
Jasper
Posts: 1821
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 895 times
Been thanked: 384 times

Re: The Debian-Live Daedalus Starter Kit

Post by Jasper »

Thank you so much for this, works great :thumbup2:

PeasyScale.v.3.1.webp
PeasyScale.v.3.1.webp (16.92 KiB) Viewed 607 times
User avatar
rcrsn51
Posts: 1486
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 424 times

Re: Webp and PeasyScale

Post by rcrsn51 »

Excellent. I posted v3.2 above with a minor change.

Last edited by rcrsn51 on Tue Mar 25, 2025 11:07 am, edited 1 time in total.
User avatar
Jasper
Posts: 1821
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 895 times
Been thanked: 384 times

Re: The Debian-Live Daedalus Starter Kit

Post by Jasper »

@rcrsn51

Do you want to add to the Webp in the dialogue box on the top line?

It's not a deal-breaker for me :lol:

Attachments
Screenshot-20250324T174210.webp
Screenshot-20250324T174210.webp (14.91 KiB) Viewed 473 times
User avatar
rcrsn51
Posts: 1486
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 424 times

PeasyScale with Webp for Puppy

Post by rcrsn51 »

[Update] Thank you to Jasper for spearheading the work on Webp.

I have combined the various Puppy Pet packages into a single tarball and posted it here. In the absence of any feedback I will assume that they are OK.

These packages are self-contained. They include all the required webp stuff and should work OOTB.

Just set your image viewer app to recognize the new webp type (usually viewnior or gpicview).

Work on the Debian version of PeasyScale will continue below.

Attachments
peasyscale-webp-puppy.tar.gz
(104.52 KiB) Downloaded 1 time
User avatar
rcrsn51
Posts: 1486
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 424 times

PeasyScale v3.3

Post by rcrsn51 »

In previous versions of PeasyScale, you could not scale an image and do a transformation like "Rotate" at the same time. It took separate runs for each task, which resulted in multiple files and PEASYSCALE subfolders. Now v3.3 can finally do this in one step.

Continuing from v3.2, this is Webp-enabled. To handle HEIF image files, install the package: heif-gdk-pixbuf.

Attachments
peasyscale-gtk3_3.3_amd64.deb.gz
Remove the fake .gz extension
(11.08 KiB) Downloaded 2 times
Last edited by rcrsn51 on Sat Mar 29, 2025 2:22 pm, edited 6 times in total.
User avatar
rcrsn51
Posts: 1486
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 424 times

HEIF image files and PeasyScale

Post by rcrsn51 »

I received today some photos in the new HEIF High Efficiency Image File format with .heic extensions. Naturally, I had no app that could view them. But a little research found that Debian has the package heif-gdk-pixbuf which contains the file libpixbufloader-heif.so in /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders. This is the same setup as with Webp!

Initially, it looked like this loader needs a lot of dependencies, but it turned out that my Starter Kit setup already has them, possibly as part of openbox. So it was just a matter of grabbing the loader's .so file and running gdk-pixbuf-query-loaders --update-cache.

I then selected a .heic file and associated it with Viewnior. Now I had a viewer! But better yet, I could also load .heic files into PeasyScale and convert them to JPEGs!

Last edited by rcrsn51 on Sun Mar 30, 2025 4:44 pm, edited 4 times in total.
User avatar
Jasper
Posts: 1821
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 895 times
Been thanked: 384 times

Re: The Debian-Live Daedalus Starter Kit

Post by Jasper »

@rcrsn51

Thanks again for the update once again :thumbup:

I am surprised at your comment regarding transformation & scaling (tested by width x height). For me it worked straight away on a single file and popped up in Viewnior.

I did compile the libwebp libraries myself and maybe this could be the reason why ???

Screenshot-20250328T154503.webp
Screenshot-20250328T154503.webp (57.49 KiB) Viewed 230 times
User avatar
Jasper
Posts: 1821
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 895 times
Been thanked: 384 times

Re: The Debian-Live Daedalus Starter Kit

Post by Jasper »

Just general info if you are unfamiliar with this format:

HEIF stands for High-Efficiency Image File format, which is basically a container that is capable of storing an image, or a sequence of images in a single file.

Designed to be extremely lightweight and efficient, the HEIF format can store images at a very high compression ratio that is about twice more efficient than an equivalent-quality JPEG image.

HEIF is based on High Efficiency Video Coding (HEVC) standard.

User avatar
rcrsn51
Posts: 1486
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 424 times

HEIF image files and PeasyScale

Post by rcrsn51 »

Jasper wrote: Fri Mar 28, 2025 3:46 pm

I am surprised at your comment regarding transformation & scaling (tested by width x height). For me it worked straight away on a single file and popped up in Viewnior.

In previous versions, if you selected a new scaling size AND a transformation like "rotate", you could only do one function at a time. The transformation would always take priority and the size would NOT change. In order to do the scaling, you had to set the transformation to "None".

That's why the old heading said "Or a transformation".

This is now fixed in v3.3 above.

Post Reply

Return to “Debian-Live Starter Kit”