-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to set background color when "over cropping" to enlarge canvas #467
Comments
GitMate.io thinks possibly related issues are #5 (image cropping module), #229 (follow-up refinements to crop image selection UI), and #352 (Patch on delete a sequence after crop). |
1 similar comment
GitMate.io thinks possibly related issues are #5 (image cropping module), #229 (follow-up refinements to crop image selection UI), and #352 (Patch on delete a sequence after crop). |
It looks interesting! But how would we set the color? RGB, HEX, or color input? Anyway, I'd like to work on that one 😅 |
Cool, great! Yes, let's set the color for now via a hex value... could that
work? Or shall we say an array like [r, g, b, a] to make an easier first
step?
Later, we might want to include some color conversion tools so you could
use various methods of indicating a color.
…On Mon, Nov 12, 2018 at 6:20 AM KusioDev ***@***.***> wrote:
It looks interesting! But how would we set the color? RGB, HEX, or color
input?
Anyway, I'd like to work on that one 😅
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#467 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJwPULyM3AJdgvs3S8Lhuw02V57-bks5uuVlZgaJpZM4YY8Jf>
.
|
@jywarren I would love to work on this! |
That'd be awesome!!!
…On Tue, Dec 25, 2018, 3:02 PM Mridul97 ***@***.*** wrote:
@jywarren <https://github.com/jywarren> I would love to work on this!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#467 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ006O34eMGhndpXKqgOpXKJlSb15ks5u8oQegaJpZM4YY8Jf>
.
|
When the crop module is given dimensions larger than the original image, it adds blank (transparent) pixels to the image edges; see this example:
http://sequencer.publiclab.org/examples/#steps=crop{x:0|y:0|w:611|h:479}
It would be excellent to offer as a parameter the color that can be filled instead of left blank. Here is the section of code where it's performed; perhaps we could tell if a pixel is outsider the original bounds and fill it with the given color?
image-sequencer/src/modules/Crop/Crop.js
Lines 12 to 21 in 4d996b9
The text was updated successfully, but these errors were encountered: