Closed kramer65 closed 9 years ago
Please try either:
<img src="{{ resized_img_src('have-a-nice-day.jpg', width=50) }}">
or
<img src="{{ url_for('images', filename='have-a-nice-day.jpg', width=50) }}">
@mikeboers - Thank you for your suggestions. Unfortunately neither works for me. Both of them return the following html:
<img src="/imgsizer/have-a-nice-day.jpg?v=VQSPQQ&w=50&s=VuB4ukXnLlvDwsGFYTyjExrTEKI">
which results in this:
I don't know if Flask_Images should automatically build the /imgsizer
url, but it simply doesn't seem to exist. I'm not sure what else I can try now.
Seeing this situation, would you have another tip to get this to work?
Turns out that I didn't have libjpeg-dev installed on my Ubuntu server. This solved it:
sudo pip uninstall PIL
sudo apt-get install libjpeg-dev
pip install -I pillow
Thanks for creating flask-images!
This may be a weird issue, but I'm kind of confused how to use this plugin. I loaded it by doing this:
I then tried transforming this (withinin a template):
into this:
but that results in the following url, which doesn't return anything
I tried some other variations, such as the ones below. But I can't get it to work:
Could anybody help me out in how I should get this to work? All tips are welcome!