thumbsup icon indicating copy to clipboard operation
thumbsup copied to clipboard

resizing photo and large-size parameter

Open oupala opened this issue 6 years ago • 3 comments

I have a question about the large-size parameter:

--large-size            Pixel height of the fullscreen photos  [number] [default: 1000]

This parameter is meant to resize photo to size defined in this parameter, which default is 1000.

But does this apply only to photo bigger than 1000 px, or to all photos? I wanted to resize all photos, including the smaller ones, to be sure that all photos have the same size, exactly. I know that resizing an image to a bigger size degrades its quality, but that what I wanted.

Another question: does this size apply to width, height, or both?

oupala avatar Apr 10 '19 07:04 oupala

Hi, currently thumbsup only shrinks images down to 1000. It doesn't enlarge small images. The --large-size argument specifies the height as per https://thumbsup.github.io/docs/3-configuration/output-settings/.

I like the idea of giving more flexibility regarding sizes. For example thumbsup could accept ImageMagick geometries like https://www.imagemagick.org/Usage/resize/ ? For example:

  • --large-size="x1000" would resize all images to exactly 1000 pixels tall
  • --large-size="x1000>" would shrink large images to 1000 pixels tall (does nothing on smaller images)

One concern is that it makes the option quite complex and error prone. What do you think? What's your use case for resizing smaller photos? You don't mind if they become blurry / pixelated?

rprieto avatar Apr 14 '19 10:04 rprieto

My usecase is when using a thermal camera (for energy audit of a building or a house). The camera is taking a thermal photography of a wall, and at the same time an optical photography of the same scene.

It appears that the definition of the thermal sensor is twice less than the optical sensor. Hence thermal pictures are twice smaller than the optical pictures.

I'd like both images to have the same size in the album, either by resizing the smaller image to the size of the bigger one (that would be a shame to reduce the size and quality of the bigger image), or by resizing the display of the image in html (with width and height parameter the img tag).

What would be the best?

oupala avatar Apr 26 '19 20:04 oupala

Using the ImageMagick syntax would be a good idea, but for sure it is error prone for beginners.

Maybe it could be easier to add some parameters, such as:

  • --large-size-min -> minimal size
  • --large-size-max -> maximal size
  • --large-size -> exact size

What do you think of this idea?

oupala avatar Apr 26 '19 20:04 oupala