Closed jmcmurray closed 11 years ago
The png generated from jSignature has a transparent background, the settings set the background via css of the canvas element and isnt' saved with the png image. The black background is probably caused by whatever you use to convert to JPG as jpegs dont do transparent background. Perhaps check if your tool can handle the transparency background or convert the background to a solid color before conversion.
Regards, Brinley
On Thu, Aug 29, 2013 at 1:15 PM, jmcmurray notifications@github.com wrote:
Hello,
I'm really liking jSignature and it seems to be working on several mobile devices I need to support. I am having one issue though, I need to save the signature as a jpg image on the server side. I've been able to get the PNG and convert it to JPG but my backgroud is always black rather than white. I've tried setting the back ground on the div, in css and as an option for jSignature but the background always appears black in the final output. I even tried getting the signature directly from the canvas so it was using the same code I used with another canvas control, but still no luck. Any ideas?
Thanks in advance, James
— Reply to this email directly or view it on GitHubhttps://github.com/brinley/jSignature/issues/39 .
Hey Brinley,
Thank you for the quick response. Changing the background color as you suggested worked perfectly.
Thanks again, James
From: Brinley Ang [mailto:notifications@github.com] Sent: Thursday, August 29, 2013 5:08 PM To: brinley/jSignature Cc: McMurray, James W Subject: Re: [jSignature] Image background always black (#39)
The png generated from jSignature has a transparent background, the settings set the background via css of the canvas element and isnt' saved with the png image. The black background is probably caused by whatever you use to convert to JPG as jpegs dont do transparent background. Perhaps check if your tool can handle the transparency background or convert the background to a solid color before conversion.
Regards, Brinley
On Thu, Aug 29, 2013 at 1:15 PM, jmcmurray notifications@github.com<mailto:notifications@github.com> wrote:
Hello,
I'm really liking jSignature and it seems to be working on several mobile devices I need to support. I am having one issue though, I need to save the signature as a jpg image on the server side. I've been able to get the PNG and convert it to JPG but my backgroud is always black rather than white. I've tried setting the back ground on the div, in css and as an option for jSignature but the background always appears black in the final output. I even tried getting the signature directly from the canvas so it was using the same code I used with another canvas control, but still no luck. Any ideas?
Thanks in advance, James
— Reply to this email directly or view it on GitHubhttps://github.com/brinley/jSignature/issues/39 .
— Reply to this email directly or view it on GitHubhttps://github.com/brinley/jSignature/issues/39#issuecomment-23523698.
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender or send back to returns@agoc.com and delete the material from any computer.
Hello,
I'm really liking jSignature and it seems to be working on several mobile devices I need to support. I am having one issue though, I need to save the signature as a jpg image on the server side. I've been able to get the PNG and convert it to JPG but my backgroud is always black rather than white. I've tried setting the back ground on the div, in css and as an option for jSignature but the background always appears black in the final output. I even tried getting the signature directly from the canvas so it was using the same code I used with another canvas control, but still no luck. Any ideas?
Thanks in advance, James