shuttle99ou / Flask-Image-Resizer

On-demand resizing of images for Flask applications.
https://mikeboers.github.io/Flask-Images/
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Add Flask 2.x compatibility or change dependencies. #13

Open vindolin opened 9 months ago

vindolin commented 9 months ago

I tried to run the demo with Flask 3.0.2 but after changing from flask.ext import Images to from flask_image_resizer import Images, the project ran but the resizing didn't work, only broken images links could be seen.

urshulgi commented 8 months ago

Hi! Sorry for the late reply.

I've been trying today the demo page, and while it has some issues, it does work for me when I import Flask-Image-Resizer, same as you:

from flask_image_resizer import Images

Also I installed some requirements:

gunicorn==21.2.0
flask==3.0.2

If I go into the demo folder, and run the demo with flask --app main run I can go to http://127.0.0.1:5000/ image

This is the source URL I'm using https://repository-images.githubusercontent.com/596892/cc2c69ec-9251-4b33-8283-b86a8659c9cb

Could you share some more details? What URL were you using with the demo maybe, or what options. I noticed that enlarge is broken for example. We haven't worked with the demo a lot as you can see.

Edit: Forgot to mention, we will add the requirements for the demo in this issue: #14. Thanks for the suggestion.