Export resizeImage function and integrate it into Prestashop service
This commit is contained in:
@@ -5,6 +5,7 @@ import {PsItem} from '../interfaces/ps-item';
|
||||
import {PsProduct} from '../interfaces/ps-product';
|
||||
import {ProductListItem} from '../interfaces/product-list-item';
|
||||
import {environment} from '../../environments/environment';
|
||||
import {resizeImage} from '../utils/image-utils';
|
||||
|
||||
type Resource = 'categories' | 'manufacturers' | 'suppliers';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function resizeImage(
|
||||
export function resizeImage(
|
||||
file: File,
|
||||
maxWidth = 1600,
|
||||
maxHeight = 1600,
|
||||
|
||||
Reference in New Issue
Block a user