mirror of
https://github.com/grocy/grocy.git
synced 2025-08-24 14:06:44 +00:00
Automatically downscale pictures to reduce page loading times (closes #275)
This commit is contained in:
@@ -82,7 +82,7 @@ Grocy.Components.ProductCard.Refresh = function(productId)
|
||||
{
|
||||
$("#productcard-no-product-picture").addClass("d-none");
|
||||
$("#productcard-product-picture").removeClass("d-none");
|
||||
$("#productcard-product-picture").attr("src", U('/api/files/productpictures/' + btoa(productDetails.product.picture_file_name)));
|
||||
$("#productcard-product-picture").attr("src", U('/api/files/productpictures/' + btoa(productDetails.product.picture_file_name) + '?force_serve_as=picture&best_fit_height=400&best_fit_width=400'));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user