# Is it possible to resize an image without importing?

1. If we have a list of 1000 ULRs which refer to image files of the following form:

Objective: We want to resize each image (e.g. 100x100 pixels) without importing the images?

Is it possible to do this without reading the files in? This would save memory and increase speed.

This question arises e.g. in machine learning.

• I would use an external tool e.g. jpegtran – mikado May 4 '19 at 18:43
• You might find ImageFileApply or ImageFileFilter useful here. – Carl Lange May 4 '19 at 19:41
• Thank you very much for both comments. – Wolfgang123 May 5 '19 at 5:25
• If you are using this for training a neural network, you should have a look at the NetEncoder documentation as well. There is some documentation for out-of-core batch generation somewhere. – Carl Lange May 5 '19 at 10:41
• Thanks. I think you address the out-of-core training by using a generating function. Wolfram has written a very good summary with examples on out-of-core training (reference.wolfram.com/language/tutorial/…) I have successfully applied generating function. – Wolfgang123 May 6 '19 at 11:09