Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    1,209

    [Announce] improved cover/artist image handling for LMS

    LMS Image Enhancer
    is a package to improve image handling for cover and artist pictures by replacing the bundled Image::Scale perl module.
    The included stand-alone image server can also be used without LMS to process local images.

    Features

    - replaces the PNG/JPG image formats with WebP
    • better image quality
    • smaller image file size → faster network transfer, smaller LMS database sizes

    uses superior algorithms for up- and down-scaling
    • better image quality
    • faster down-scaling

    can use smart crop to generate square images (optionally with round corners)
    • general: attention-based area selection
    • for artists: face detection to select areas, can arrange faces in a square grid

    - can use content-aware image resizing
    - no forced JPG→PNG conversions (LMS converts any JPG which isn't perfectly square (e.g. 700x701 pixels) to PNG, which results in huge file sizes)
    - server-side upscaling (LMS doesn't upscale images)
    - stand-alone image server (local or network) and CLI client

    More information on the homepage
    Various SW: Web Interface | TUI | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,555

    [Announce] improved cover/artist imagehandling for LMS

    > is a package to improve image handling for cover and artist pictures by
    > replacing the bundled Image::Scale perl module.


    Interesting. So it will also be used by the scanner?

    I see that the user would need to replace a file installed by LMS, and
    would have to do so after any LMS update. Did you try to install it
    inside your plugins' folder structure instead? I thought those folders
    _might_ be prioritized. But I'm not 100%, tbh.

    But what you could do instead of replacing an existing file, you could
    put it inside the lib folder rather than CPAN. Haven't tried that yet.
    But it would be an addition rather than a replacement, which might
    survive updates.

    > can use smart crop to generate square images (optionally with round
    > corners)
    >
    > - general: attention-based area selection
    > - for artists: face detection to select areas, can arrange
    > faces in a square grid
    >
    > - can use' content-aware image resizing'


    That sounds interesting! Would you have a few example screenshots? (or
    images...) Before and after?

  3. #3
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    1,209
    Quote Originally Posted by mherger View Post
    Interesting. So it will also be used by the scanner?
    yes

    I see that the user would need to replace a file installed by LMS, and
    would have to do so after any LMS update. Did you try to install it
    inside your plugins' folder structure instead? I thought those folders
    _might_ be prioritized. But I'm not 100%, tbh.

    But what you could do instead of replacing an existing file, you could
    put it inside the lib folder rather than CPAN. Haven't tried that yet.
    But it would be an addition rather than a replacement, which might
    survive updates.
    If you mean putting it into e.g. <plugin>/lib/5.30/armv7l-linux-thread-multi/auto/Image/Scale/Scale.so, I tried that.
    Unfortunately, this crashes LMS immediately (I assume that both modules are loaded, which doesn't end well)

    > - can use' content-aware image resizing'[/color]
    That sounds interesting! Would you have a few example screenshots? (or
    images...) Before and after?
    There are some examples on the wikipedia page linked above.

    Example artist image using this implementation:
    orig:
    Name:  dcd4_orig.jpg
Views: 122
Size:  14.3 KB
    shrunk:
    Name:  dcd4_s.jpg
Views: 122
Size:  2.0 KB

    There are limits, though. Shrunk to 60% horizontally:
    Name:  seed1.jpg
Views: 122
Size:  6.8 KB
    (and that's with using face detection to exclude the heads, without that it's a lot worse)

    For such cases, there's a grid mode:
    Name:  seed1_g.jpg
Views: 126
Size:  6.8 KB
    Various SW: Web Interface | TUI | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | DB Optimizer | Image Enhancer | Chiptunes | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •