File tree Expand file tree Collapse file tree 1 file changed +9
-21
lines changed
components/leonardo_ai/actions/unzoom-image Expand file tree Collapse file tree 1 file changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export default {
44 key : "leonardo_ai-unzoom-image" ,
55 name : "Unzoom Image" ,
66 description : "Creates an unzoom variation for a generated or variation image using Leonardo AI's unzoom API." ,
7- version : "0.0.1 " ,
7+ version : "0.0.2 " ,
88 type : "action" ,
99 props : {
1010 app,
@@ -13,36 +13,24 @@ export default {
1313 label : "Image ID" ,
1414 description : "The ID of the image to create an unzoom variation for. This should be a previously generated or variation image ID." ,
1515 } ,
16- zoom : {
17- type : "string" ,
18- label : "Zoom Level" ,
19- description : "Zoom level for the unzoom effect. Must be between 0.0 and 1.0. Higher values create more zoom out effect." ,
20- default : "0.5" ,
21- optional : true ,
22- } ,
23- seed : {
24- type : "integer" ,
25- label : "Seed" ,
26- description : "Random seed for reproducible generation. Leave empty for random generation." ,
27- optional : true ,
16+ isVariation : {
17+ type : "boolean" ,
18+ label : "Is Variation" ,
19+ description : "Whether the image is a variation image." ,
20+ default : false ,
2821 } ,
2922 } ,
3023 async run ( { $ } ) {
3124 const {
3225 imageId,
33- zoom,
34- seed,
26+ isVariation,
3527 } = this ;
3628
3729 const data = {
38- imageId,
39- zoom : zoom ? parseFloat ( zoom ) : 0.5 ,
30+ id : imageId ,
31+ isVariation ,
4032 } ;
4133
42- if ( seed ) {
43- data . seed = seed ;
44- }
45-
4634 const response = await this . app . post ( {
4735 $,
4836 path : "/variations/unzoom" ,
You can’t perform that action at this time.
0 commit comments