Find Jobs
Hire Freelancers

Fix a bug in my code

$15-25 USD / hour

Slutfört
Publicerad nästan tio år sedan

$15-25 USD / hour

I'm using Canvas to let my users "design" an add that later is transformed into an image to be displayed on my website. In this design, the users can add their logo. I'm using this funtion to add the logo to the canvas: function canvasLogo(){ var x = 70; var y = 70; // var width = 500; // var height = 500; var imageObj = new Image(); [login to view URL] = function() { var imageWidth = [login to view URL]; var imageHeight = [login to view URL]; if (imageHeight > imageWidth) { imageWidth = (imageWidth / imageHeight) * 490; imageHeight = 490; } else { imageHeight = (imageHeight / imageWidth) * 490; imageWidth = 490; } x = x + (500 - imageWidth) / 2; y = y + (500 - imageHeight) / 2; roundedImage(70, 70, 500, 500, 30, 0, 0, 30); [login to view URL](); [login to view URL] = "white"; [login to view URL](70, 70, 500, 500); [login to view URL](imageObj, x, y, imageWidth, imageHeight); [login to view URL]("Logo cargado"); }; [login to view URL] = [login to view URL]; } And then the users add other things like text and colors and finally when they click the button to create the add I use: function crearAnuncio(elm){ if($("#advanced-wizard").valid() && [login to view URL] > 0){ [login to view URL](); [login to view URL] = "z"; setTimeout(function(){ render(); [login to view URL](1*3,1*3); setTimeout(function(){ kanv = [login to view URL]([login to view URL]); var imgB = [login to view URL]("image/png"); var serialForm = $("#advanced-wizard").serialize(); var arguments = serialForm+"&file="+encodeURIComponent(imgB); deliver(arguments); [login to view URL]([login to view URL]); // Run paypal if(global.form.idMetodoPago==1){ [login to view URL]('paypal_process').submit(); } else { [login to view URL] = ''; deliver_site(arguments, "[login to view URL]"); window.location.href="[login to view URL]"+[login to view URL]; } [login to view URL](); }, 550); },150); } else { alert('Seleccione el método de pago '); } } To transform the canvas into a png which is then displayed on my site. The thing is that sometimes (haven't been able to replicate the error myself and the clients say it only happens "sometimes") their logo is not rendered in the final image (text and colors do). The space for the logo is just blank. The clients tell me that they could see their logo on the canvas before pressing the generate button. It doesn't appear to be related to operative system or browser since the same computer sometimes creates the add alright and sometimes without the logo. I thought it was my server so I changed and upgraded the hosting and it still happened. Any idea on what could be going wrong? Thank you.
Project ID: 6104643

Om projektet

3 anbud
Distansprojekt
Senaste aktivitet tio år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
Hi Pablo, I'm placing my bid as discussed. Please create the milestone and award it to me. I will start working and finish it in 24 hours. Best Regards, Arun.
$21 USD Om 5 dagar
4,9 (65 omdömen)
6,5
6,5
3 frilansar lägger i genomsnitt anbud på $20 USD/timme för detta uppdrag
Använd avatar
Hi Sir, I have seen your canvas code and i am very much intersted to do this task.i have done so many tasks in canvas transformaation and rendering .i can also do this work in just 4 to 5 hours .we can discuss more for this Thank you
$15 USD Om 6 dagar
5,0 (1 omdöme)
0,6
0,6

Om kunden

Flagga för MEXICO
Leon, Mexico
5,0
14
Verifierad betalningsmetod
Medlem sedan aug. 15, 2012

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.