I'm have application that gets image in binnary format. Then this application must convert this image to specific dimmension and save both form (orginal and specific) to disk. In this case application must store info about this picture in database too.
Where put the logic of conversion: in application layer, in domain layer or maybe in infrastructure layer?