django-watermark icon indicating copy to clipboard operation
django-watermark copied to clipboard

'ImageFieldFile' object has no attribute 'split'

Open studiorooster opened this issue 8 years ago • 2 comments

I would love to use this library, but am getting a 'ImageFieldFile' object has no attribute 'split' error. Migration was smooth, I have it declared in settings and and loaded it in my template. Any thoughts? Thank you. Below is my code.

{% if category.image %}
    <img src="/media/{{ category.image|watermark:"test,opacity=40,tile=1" }}"
              alt="{{ category.title }}" title="{{ category.title }}"
              class="img-responsive center-block shop-item-img-list-view"/>
{% else %}
    <img src="http://placehold.it/350" width="100%">
{% endif %}

studiorooster avatar Apr 27 '17 19:04 studiorooster

try to pass image url, not the image object

bashu avatar Oct 23 '21 09:10 bashu

will be fixed in a future releases

bashu avatar Oct 24 '21 07:10 bashu