You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we add renderers (see details at bottom) and remove the duplicate _png, _jpeg, and _tif variants of many of the endpoints so that they are one endpoint that accepts different formats? I know this is possible, but I haven't been able to get it working with DRF 😕
For example, we have the thumbnail endpoint split as two endpoints:
/image-file/{id}/thumbnail.png
/image-file/{id}/thumbnail.jpeg
Can we combine these to: /image-file/{id}/thumbnail.{format}
Thus reducing the method shims for these endpoints like
So far I have been unsuccessful in getting this to work. What's annoying is that the default .json and .api "formats" work for these endpoints, but I cannot add any custom formats/renderers like .png, .jpeg, or .tif
Can we add renderers (see details at bottom) and remove the duplicate
_png
,_jpeg
, and_tif
variants of many of the endpoints so that they are one endpoint that accepts different formats? I know this is possible, but I haven't been able to get it working with DRF 😕For example, we have the thumbnail endpoint split as two endpoints:
/image-file/{id}/thumbnail.png
/image-file/{id}/thumbnail.jpeg
Can we combine these to:
/image-file/{id}/thumbnail.{format}
Thus reducing the method shims for these endpoints like
django-large-image/django_large_image/rest/data.py
Line 38 in 09ef6e8
and
django-large-image/django_large_image/rest/data.py
Line 48 in 09ef6e8
So that we are only using
django-large-image/django_large_image/rest/data.py
Line 25 in 09ef6e8
with the
format
argument.So far I have been unsuccessful in getting this to work. What's annoying is that the default
.json
and.api
"formats" work for these endpoints, but I cannot add any custom formats/renderers like.png
,.jpeg
, or.tif
The text was updated successfully, but these errors were encountered: