Skip to content

Commit

Permalink
fix: asset service transformation parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gbicou committed Jun 5, 2023
1 parent d431a34 commit 3dacb73
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -130,12 +130,14 @@ export default defineHook(({ action }, { services, logger }) => {
// @see https://docs.imagga.com/#best-practices
const assets: AssetsService = new services.AssetsService(context);
const { stream } = await assets.getAsset(key, {
key: "imagga",
format: "jpeg",
width: 300,
height: 300,
fit: "outside",
withoutEnlargement: true,
transformationParams: {
key: "imagga",
format: "jpeg",
width: 300,
height: 300,
fit: "outside",
withoutEnlargement: true,
},
});

// upload asset to imagga upload service

0 comments on commit 3dacb73

Please sign in to comment.