site  contact  subhomenews

Picscale package removed

August 09, 2022 — BarryK

I posted about failure to cross-compile 'picscale':

https://bkhome.org/news/202208/bacon-dependency-removed-from-oe.html

I experimented with an older version of bacon in OE, picscale compiled ok, but there is a segmentation fault when try to use it.

I looked where 'picscale' is used, it is in three scripts:

3buildeasydistro (in woofQ)
/usr/local/easy_containers/easy-containers
/usr/local/sfsget/dir2sfs

I changed the code to use 'ffmpeg' instead. Yes, 'ffmpeg' can be used as a CLI utility to resize image files, and convert to a different format. Works with xpm, jpg and png, but not svg. Use it like this:

# ffmpeg -i input.png -s 48x48 output.png >/dev/null 2>&1

In the scripts, in case of svg image, have used 'rsvg-convert' instead.

An alternative would be to use the 'convert' utility in 'imagemagick' or 'graphicsmagick' packages. Easy Dunfell-series does have 'imagemagick' in the repository, but not installed by default.    

Tags: easy