I recently got a code to process images in the ImageJ. And since I constantly lost resolution of some pictures, I think it might be an issue of different formats of the images (lossless vs. lossy). I tried to get the original images in 3 formats: jpg, png, and tif and tested on them. However, regardless of their various original resolutions, after being processed, they all become 96 dpi horizontally and vertically. Even opening an image and then resaving it without processing decreases the resolution to 96 dpi, regardless of the format. Thus, I don’t think this issue is caused by the images’ formats.
Does ImageJ have a default dpi value for the images processed? If so, how can I change it? If not, is there any other programmable software that can do batch processing without losing the resolution? Thank you very much.