Generate Previews For Product That Created Form Custom Controller
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 86
- Joined: 12 Jan 2019, 15:17
Generate Previews For Product That Created Form Custom Controller
I want to generate media previews for the product that I have created from my custom controller. Means right after the product creation.
Please guide me about this issue.
Thanks
Please guide me about this issue.
Thanks
Re: Generate Previews For Product That Created Form Custom Controller
Use the scale() method of the media controller:
https://github.com/aimeos/ai-controller ... d.php#L179
https://github.com/aimeos/ai-controller ... d.php#L179
Code: Select all
$cntl = \Aimeos\Controller\Common\Media\Factory::create( $context );
$mediaItem = $cntl->scale( $mediaItem );
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star