Replies: 2 comments 4 replies
-
Hi @NeosKsen, Thank you for reaching out. django-pictures has a placeholder feature. For the placeholders to work, you will probably need to add a better path prefix to your URL include, e.g.: If you want to serve the original files, you will need to set I hope my explanation helps. Cheers! BTW: Don't forget to pass an |
Beta Was this translation helpful? Give feedback.
-
Hi, I wanted to switch from django-versatileimagefield, due to the fact that I need webp, I did everything according to the instructions, but for some reason the images are not generated. Then I saw that I needed a celery task, but it would be nice to write an example in the instructions at least. So it's too difficult for me. Although I already have Celery set up. class ProductImage(models.Model): |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my model I have
my settings.py media route
my urls.py
my main image is saved and displayed as usual, but the path to the generated one is displayed incorrectly
main image path: /media/news/2022/12/26/Vaza_uyutnaya.max-800x600_F1aHcA7.jpg
wrong generated path: https://test/None/16x9/600w.WEBP (srcset="/None/16x9/100w.WEBP, ...)
real path: /media/news/2022/12/26/Vaza_uyutnaya.max-800x600_F1aHcA7/16x9/600w.WEBP
call in HTML file:
{% picture item.image ratio="16/9" lg=6 xl=4 %}
Beta Was this translation helpful? Give feedback.
All reactions