Resize Images Plugin

Added by fatal over 6 years ago

This is saver plugin that will resize images. For this saver plugin to work, it must be placed above any other saver plugins that you want resized images for.

For example, if you had the saver plugins in the following order:

  1. Resize Images
  2. MediaBrowser Saver
  3. XBMC Saver

Then first the resize image saver plugin will be fired, which resizes the images in memory, then the other save plugins below it (in this case MediaBrowser & XBMC) will get/save the resized images.

If you had saver plugins in the following order:

  1. MediaBrowser Saver
  2. Resize Images
  3. XBMC Saver

Then MediaBrowser would get/save full sized images, then the resize images plugin would resize the images, and then XBMC woudl get/save the resized images.

Hopefully that makes sense :D

Take Care

  • Maintain Aspect Ratio
    • If checked, will maintain the aspect ratio of the image while resizing
  • Width
    • Maximum desired width of resized image (0 = max width)
  • Height
    • Maximum desired height of resized image (0 = max height)
  • Max KB
    • Maximum desired file size (in KB) of resized image (0 = no limit)
    • Reduces image pixels by 50 each time until desired file size is reached
    • Recommend setting a value for width or height along with Max KB for best performance/speed

Replies (10)

RE: Resize Images Plugin - Added by fatal over 6 years ago

Plugin has been updated a little for TV, now allowing you to select resize modes for series/season/episode levels individually.

resizeTV.PNG (20.1 kB)

RE: Resize Images Plugin - Added by Doggelito over 6 years ago

Would it be possible to add the ability to resize the folder.jpg too?
I think that might speed up things in explorer. MediaBrowser caches the images on its on but I don't need a folder.jpg file that has a resolution of 1000x1500. 256 or 512 by something is perfectly fine for me.

RE: Resize Images Plugin - Added by fatal over 6 years ago

This is already possible, the "Resize Poster" is what resizes the folder.jpg images (it is considered a poster).

Turn on Resize Poster, check Maintain Aspect Ratio and set the size to w400 x h600.

Take Care

RE: Resize Images Plugin - Added by fatal over 6 years ago

Added a Max KB setting to specify desired file size (in KB)

Max KB
  • Maximum desired file size (in KB) of resized image
  • Reduces image pixels by 50 each time until desired file size is reached
  • Recommend setting a value for width or height along with Max KB for best performance/speed

RE: Resize Images Plugin - Added by leedavies about 5 years ago

As we're talking JPG files here mostly I think, I would love to see a quality option added to the resize images plugin. Right now, I sort my own posters - after all, I think for most of usm, we want the Blu Ray or DVD cover (without having to scan it in ourselves), rather than a poster.

Being able to resize backdrops to 1280x720 (my chosen resolution) is fantastic. But afterwards using FastStone Photo Resizer to dropping the JPQ qualityto 90% or, most of the time 80%, without any visible loss in quality can give a decent file size saving. Smaller images flying over the network is a good thing all round.

For example, I just used MetaBrowser to download 3 backdrops for The Smurfs movie - after moving the backdrops I already had (the same images) to another folder. The downloaded images, after MB auto resized them to 1280x720 are these sizes:

After opening in any JPG editor and saving at a JPG quality of 80%, or using Fast Stone Photo Resizer, the file sizes become:

Has the quality dropped? I picked one of the originally downloaded backdrops at random and doubled the canvas height to paste the optimized version of that backdrop below it and saved as a new image. Can you tell the difference?

Using a JPEG quality level of 80% saves half the storage space, with no discernable loss of quality to the human eye.

Regardless, I'd love to see a JPEG quality optional setting in the image resizer plugin. Saves another manual task after downloading images...

RE: Resize Images Plugin - Added by AdrianW about 5 years ago

Using a jpeg quality level parameter sounds like a very good idea to me.

I was reading the previous post (from fatal, 1 year ago) and it sounds like using the Max KB setting causes images to be decreased in dimensions, which sounds like a bad idea.

I'd suggest replacing the "Max KB" setting with a jpeg quality level setting (it would probably be sufficient to have a single quality level parameter and having it apply to all image resizing).

But, I guess it depends on what tool fatal is using to perform resizing, it may not have a quality parameter.

RE: Resize Images Plugin - Added by fatal about 5 years ago

Hey,

The "Max KB" option was added b/c Netgear devices would fail to load folder images that were larger than 200K in size (don't know if that is still an issue or not). I think I had tried different quality settings in the resize settings I used, but the quality suffered and I decided on a value that retained quality at a reasonable size. I don't know what algorithm etc some of the popular image programs use, but I don't think me offering a quality setting is going to yield as good as results as the image programs you use.

Although if you feel it would be a good option to have, create a feature request and I can always take a stab at it and add it in a future release.

Take Care

RE: Resize Images Plugin - Added by AdrianW about 5 years ago

I just noticed something strange with the resizing - I only have resizing configured for episode thumbnails, and I have the size set at 400x300, this causes 16:9 thumbs to be resized to 400x225 (which is what I want).

I manually created a thumb for a particular episode (outside of metabrowser using an image editor) and then dragged it in - now even though the image was already 400x225, the resizer plugin did something to it, because the file size actually increased from 20KB up to 27KB (although the resolution stayed exactly the same).

I think if an image is already at or below the required resolution, then the resizer should just leave it alone (unless the file size is above the specified max).

RE: Resize Images Plugin - Added by fatal about 5 years ago

Hey,

I think if an image is already at or below the required resolution, then the resizer should just leave it alone (unless the file size is above the specified max).

It already does that, the size increase you are seeing is when the image is actually saved through the .net framework, not through the image resize plugin. As a test you can turn off the image resize plugin and save the original image again and you will get the same results.

Like I said I had to come to a compromise btwn quality and size when saving images through .net, and the .net jpg encoder might not be as good as the program used to create the image...also, it could be possible that if the image was saved from a program like Photoshop, that it is using some optimized image compression algorithm that .net doesn't.

Take Care

RE: Resize Images Plugin - Added by AdrianW about 5 years ago

fatal wrote:

It already does that, the size increase you are seeing is when the image is actually saved through the .net framework, not through the image resize plugin. As a test you can turn off the image resize plugin and save the original image again and you will get the same results.

I just tried switching off the resizer, and you're right I got the same filesize change, that's fair enough - it's no big deal really, and at least it's not badly affecting the quality at all.

(1-10/10)