[Question] How Set canvas size ? #97
-
PlaceholderHow Set canvas size ? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
Can you describe more in detail what you mean? |
Beta Was this translation helpful? Give feedback.
-
Actually I had a similar question, not sure if the same as what @santoshgistto is asking, but in my case, I want to input a fixed ratio image and then only have edits allowed on the image and not outside the image. So canvas size == image size in my case. Here's an example of a 1:1 ratio image being loaded and what I mean: So ideally I want to have 1:1 image in, and edits only allowed within the image and then save and output 1:1 image. |
Beta Was this translation helpful? Give feedback.
-
It's currently not possible to do this directly in the editor, but I'm adding it to my roadmap. ImageGeneratioConfigs(
generateOnlyDrawingBounds: false,
) |
Beta Was this translation helpful? Give feedback.
-
Got it, thanks. Right now I crop the image myself already and pass it into pro_image_editor so it comes out the right size. |
Beta Was this translation helpful? Give feedback.
-
Thank you |
Beta Was this translation helpful? Give feedback.
-
Thanks for all the fixes/updates! So is the aspect ratio thing I mentioned addressed in 3.0.5? If so, I couldn't see how to enable it? |
Beta Was this translation helpful? Give feedback.
-
@adamkoch Not yet, I just moved it to the roadmap so I closed the question. |
Beta Was this translation helpful? Give feedback.
-
@adamkoch I just added the option to capture only the background image area, which we can enable in the configs: ProImageEditorConfigs(
imageEditorTheme: const ImageEditorTheme(
outsideCaptureAreaLayerOpacity: 1,
),
) I didn't release this version as a stable release, but as a prerelease |
Beta Was this translation helpful? Give feedback.
-
Thank you @hm21. I tried and it works really well. With I did a weird glitch in landscape mode on iphone simulator - the drawing overlay seems to show in the safearea zone even though there is a black color set for the Scaffold. It may just be a glitch on the simulator. I don't have a real device to test right now. But I think it's a fairly minor thing. |
Beta Was this translation helpful? Give feedback.
-
Oh also, I realized it's not a great idea to set |
Beta Was this translation helpful? Give feedback.
@adamkoch I just added the option to capture only the background image area, which we can enable in the
imageGenerationConfigs
with thecaptureOnlyBackgroundImageArea
flag. This flag is now enabled by default. If a layer is outside the background image, it will show the user a bit hidden because I overlay the background color with opacity on the layer. If you want to hide it completely, you can set the opacity from the optionoutsideCaptureAreaLayerOpacity
to 1 in the configs of theimageEditorTheme
like below:I didn't release this version as a stabl…