Export resizeImage function and integrate it into Prestashop service

This commit is contained in:
Vincent Guillet
2025-12-03 19:48:19 +01:00
parent fd6c730ae3
commit 9763289c2f
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import {PsItem} from '../interfaces/ps-item';
import {PsProduct} from '../interfaces/ps-product'; import {PsProduct} from '../interfaces/ps-product';
import {ProductListItem} from '../interfaces/product-list-item'; import {ProductListItem} from '../interfaces/product-list-item';
import {environment} from '../../environments/environment'; import {environment} from '../../environments/environment';
import {resizeImage} from '../utils/image-utils';
type Resource = 'categories' | 'manufacturers' | 'suppliers'; type Resource = 'categories' | 'manufacturers' | 'suppliers';

View File

@@ -1,4 +1,4 @@
function resizeImage( export function resizeImage(
file: File, file: File,
maxWidth = 1600, maxWidth = 1600,
maxHeight = 1600, maxHeight = 1600,