1. A method comprising: receiving, by a processing device, user input indicating an activation of an image filter; receiving, by the processing device, image data for a receipt and contextual data for the receipt, wherein the image data is from an image capture device and the contextual data comprises data of a past receipt; calculating, by the processing device, a distance to the receipt in view of one or more sensor devices of the image capture device; determining, by the processing device, a size of the receipt in view of the distance to the receipt and the contextual data comprising the data of the past receipt; processing, by the processing device, the image data in view of the image filter and the determined size of the receipt to obtain filtered image data; determining, by the processing device, a resolution for storing the filtered image data based on the determined size of the receipt; providing, by the processing device, a user interface presenting a preview of the filtered image data in real time; and storing, by the processing device, the filtered image data using the determined resolution.