NaturalHistoryMuseum / inselect

Cross-platform desktop app for the segmentation and annotation of images of museum objects
https://naturalhistorymuseum.github.io/inselect/
Other
124 stars 17 forks source link

Crops from thumbnail not original image? #431

Open LMAustMus opened 7 years ago

LMAustMus commented 7 years ago

Hi, Not sure if this is a bug or an enhancement request! We take images at high resolution to capture as much detail of our insect soups as possible - some of them contain small insects! The original image in this instance was a tiff about 18Mb (relatively small for us). Inselect created an approx 1.3Mb thumbnail to work with - fair enough. However when we save the crops, the largest one is about 99kB and the smallest was 2kB, A considerable reduction in image size and resolution. While the smallest insects in this image are still not really clear, they are much clearer than in the crop. We also trialed it recently for cropping individual images out of a photo album page. The loss of image size in the crops means it isn't usable for this purpose unfortunately so we will have to continue manually cropping the images from the pages - I thought I had found a shortcut! Is it possible to create the crops from the original image? Is there a setting somewhere or is it programmatically too hard? Cheers, Linda

bwprice commented 7 years ago

Hi Linda, Are you using a user specified template or the default Darwin Core template? If a user specified template then you can specify the extension of the saved images - we are using ".jpg", but you can change that to ".tiff".

In both cases Inselect is saving crops from the original image, but with "jpg" there is additional compression applied to the image (not sure what settings) which may be causing the loss of resolution.

Cheers, Ben

LMAustMus commented 7 years ago

Thanks ben, currently the default, but I'll give it a go with a user specified one and try a tiff. Just seems a lot more compression than usual - even for a jpg! Cheers, Linda

quicklizard99 commented 7 years ago

Hi Linda,

As Ben said, Inselect crops the exported images from the original image, not from the thumbnail. Inselect does not reduce the size of the exported crops. I actually use an Australian Museum insect soup image to demonstrate Inselect - the exported JPEG crops always look very good.

If you are unable to get to the bottom of this, please share an image with me on Dropbox and I can have a look.

cjenness commented 7 years ago

Hi, I am also trying to save images as .tiff instead of .jpg, but I cannot figure out how/where to reconfigure the extension of the saved image. Thanks Christina