-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hi I am having trouble getting imager-x working for me in my local environment and I'm hoping you can help.
I originally had AWS S3 as my image store for both local and production. For reasons , I can no longer use AWS as my storage for images locally, and instead, I have to use a local copy of the images. However, I am having trouble getting the images to work locally. I was hoping there is a way to accomplish this with just config and .env vars? Is that possible? This is what I have in my imager-x config. Any advice/help you could give would be greatly appreciated.
$return = [
'filenamePattern' => '{fullname|shorthash}_{transformString|shorthash}.{extension}',
'hashRemoteUrl' => true,
'shortHashLength' => 5,
'removeMetadata' => true,
'cacheEnabled' => true,
'cacheRemoteFiles' => false,
'safeFileFormats' => ['jpg', 'jpeg', 'gif', 'png', 'tif'],
'storages' => App::env('ENVIRONMENT') === 'dev' ? [] : ['aws'],
'storageConfig' => App::env('ENVIRONMENT') === 'dev' ? [] : [
'aws' => [
// left out the real was info//
]
]
];
if (App::env('ENVIRONMENT') !== 'dev') {
$return['imagerUrl'] = App::env('S3_BASE_URL') . 'transforms/';
}
return $return;
Debug info :
Imager version & edition 5.1.3 PRO
Imager transformer craft
Craft version & edition 5.7.3 PRO
PHP version 8.2.28
Image driver & version Imagick 3.8.0 (ImageMagick 6.9.11-60)
Image driver supported formats jpg, jpeg, gif, png, webp, avif, heic
Custom encoders No [custom encoders](https://imager-x.spacecat.ninja/usage/webp-avif-jpegxl.html) configured.
Enabled external storages No [external storage](https://imager-x.spacecat.ninja/configuration.html#storages-array) configured.
Enabled optimizers No [optimizers](https://imager-x.spacecat.ninja/usage/optimizers.html) configured.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels