I am using Django - GraphQL (Graphene/Relay) - ReactJS for my website. Before I request an image from my Django application I already know the exact size the image needs to be. I would like to resize my image on the server before sending it to the Client, this would just make more sense to me than to upload every image 10 with different sizes and then use logic to determine which one I need (doesn't it?).
I found django-imagekit but I didn't manage to find anything that would work for an application not using Django for the views, preferably something that works with GraphQL.
What is the best way to do this?