fengyuanchen / cropper

⚠️ [Deprecated] No longer maintained, please use https://github.com/fengyuanchen/jquery-cropper
MIT License
7.75k stars 1.74k forks source link

set background image when drop #900

Closed tanvan81 closed 7 years ago

tanvan81 commented 7 years ago

Hi

When I crop image, background auto set black, how to I set white background

tks

shankarThiyagaraajan commented 7 years ago

@tanvan81 , There are two ways to done this,

  1. Use as option "fillColor", while you initiate your cropper.
  2. In main.js, try this fillColor: '#fff' on options . Here, you can set whatever the colour you want.

This second option will set the background as default.

Thank you !

tanvan81 commented 7 years ago

tks so much

I've config success

2017-06-29 12:12 GMT+07:00 Shankar Thiyagaraajan notifications@github.com:

@tanvan81 https://github.com/tanvan81 , There are two ways to done this,

  1. Use as option "fillColor", while you initiate your cropper.
  2. In main.js, try this fillColor: '#fff' on options . Here, you can set whatever the colour you want.

This second option will set the background as default.

Thank you !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fengyuanchen/cropper/issues/900#issuecomment-311864211, or mute the thread https://github.com/notifications/unsubscribe-auth/AQK1NSFIXwe5X9KUrpoIjoHcWWgSOnNbks5sIzJEgaJpZM4OGHdn .