Open
Description
I have multilanguage app, and I need to use multiple images in different languages, I am using django-parler
for that, but django-imagekit
is generating images.
models.py
class Slider(models.Model):
translations = TranslatedFields(
image = models.ImageField(upload_to="slider"),
image_large = ImageSpecField(source="image", processors=[ResizeToFill(1216,388)], format="webp", options={"quality": 90}),
image_medium = ImageSpecField(source="image", processors=[ResizeToFill(728,410)], format="webp", options={"quality": 90})
)
is_active = models.BooleanField(default=False)
I've tried another option like:
class Slider(models.Model):
translations = TranslatedFields(
image = models.ImageField(upload_to="slider"),
)
image_large = ImageSpecField(source="translations__image", processors=[ResizeToFill(1216,388)], format="webp", options={"quality": 90})
image_medium = ImageSpecField(source="translations__image", processors=[ResizeToFill(728,410)], format="webp", options={"quality": 90})
is_active = models.BooleanField(default=False)
None of them worked.
Is it possible to use it with django-parler
?