-
Notifications
You must be signed in to change notification settings - Fork 206
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
How to export front and back of this tshirt #1
Comments
I did not get chance to add export option. You will have to use to use "toDataUrlWithMultiplier". You can get more information from https://groups.google.com/forum/m/#!msg/fabricjs/u8d_rwuNffI/rs7BwiwQLEMJ |
Hi Imomin, I tried to export whole of front and back of this t-shirt however it shows from canvas design area only, the t-shirt image doesn't show. Can you send me a short code to export to an another image, i would like that it contains whole of front and back and the t-shirt image. Thank you ! |
The export is to generate file for printing. What you are asking, I believe is pre-view of your t-shirt? |
Hi Imomin, Can you send me an example code to preview a new image of front and back after designing the t-shirt ? Thanks you ! |
Can you try following, Create an image tag and give it an ID of "preview". In your javascript, add following script. dataurl = canvas.toDataURL(); |
Hello Imomin, thanks for good solution . What license is published your code? Mit or other? Thanks for answer. |
I don't understand licenses. It is not perfect solution but free to use it
|
Hello, I'm really interested in your T shirt design tool application, it's good example to learn from, did you update this module since then? I mean do you have t shirt application with more functionality? If so, I would really appreciate if you could upload it on GitHub. I would also like to make a donation for your job. |
No have not got chance to work on it. Feel free to use it.
|
What features you are looking for?
|
Please contact with me via email , my mail [email protected] |
I would need useful functions like: Undo/Redo, Save canvas to your computer (JPG, PNG), upload image (JPG, PNG) from computer, some text effects, change object opacity. Any useful function would be appreciated. Something similar like this: http://www.riaxe.com/tshirtapphtml5/ I just started to explore fabric.js and I can code many functions on myself but at some point I feel that I will stuck anyway. |
Can you help me to implement a few functions? |
Hi Elvinas,
|
Hello, I would like to ask you about your t shirt module again. |
Try changing following in the js file line1 = new fabric.Line([0,0,200,0], {"stroke":"#000000", And following in index.html page On Mon, Jul 14, 2014 at 12:58 PM, Elvinas [email protected] wrote:
|
Thank you for your fast response! I don't want to ask too many questions but how exactly does Tshirt color changer work? I mean when you click on color-preview, I don't see any code related with color-preview class, so how does color change? |
It changes the color of the div. the t-shirt image is transparent. $('.color-preview').click(function(){ On Mon, Jul 14, 2014 at 1:24 PM, Elvinas [email protected] wrote:
|
Thank you again you helped a lot... |
I'm trying to implement your tShirt module on my own interface: http://www.atvirukai.eu/tshirt/ |
Hmm.... Issue might with CSS for the div.
|
Please can you check my website again? I don't understand what is wrong when I use Safari on Windows it doesn't let me click on added object on the canvas I mean it's not even clickable, on other browsers it works perfectly. Maybe it's something wrong with CSS? |
Works find for me on Chrome 35.0.1916.153 on Windows 7. On Mon, Jul 21, 2014 at 2:37 PM, Elvinas [email protected] wrote:
|
Hello, Can you help me find an error? |
Again works fine.
|
Hello, @imomin ! I'm trying like this:
The result is that only the first canvas gets exported... Also the b variable I noticed, that the contents of it dissappears when I try to get back to the back side. Any ideas? |
Hi Airnayden,
|
Ok, I figured it out about dissapearing of the b variable. But still can't export both sides at a time... |
Can you upload your code to some server or such, it would be more convenient to help you out. |
Hi Imomin, |
Ashok,
|
@Elvinas I managed to export front and back. What i did is to save front and back canvas with every change, so in the end I have 2 vars. @ashokbharathi I exported front and back for the shirt, with the cliparts and the backgrounds. If you want I can share the code, where PHP manages the images. |
I would be grateful if you could share it: [email protected] |
Hi, Imomin Do you have an idea what can be wrong, I'm trying to implement font change function from yours, but I get an error that setFont function is not defined, in your example it works but when I paste it to my own example somehow it doesn't. and if I place this function outside jQuery ready function is says that activeObject doesn't exist. What can be wrong? at this time I'm using my simple example without bootstrap css. I place fonts in html with ul li elements including onclick function with a function that sets font. |
hi ..your application is so amazing but why i cant preview the hoodie, tank tops and long sleeves shirt? |
Hi Imomin, How would you approach switching front/back if I have two different icons, for front and back. How to safely check if front was clicked and if it's clicked then do nothing, and if back is clicked then it would be switched. Thank you in advance |
I did it by assigning a variable with value 'front'. When front/back button is clicked if first checks the value of the variable and if the value is 'front' and the back button is clicked, then the value changes to 'back' and the back side of the shirt is displayed. And the same for front :) |
Thank you it helped me to complete my task :) It seems that I was thinking way too difficult. |
No probs :P |
Anyone knows how can I export front/back canvas in json at the same time? Because now I can only export either front or back depending on what's selected. |
@Elvinas You could check the a and b variables in the javascript code. The canvas is saved as json every time the canvas is flipped. Maybe you could save those variables as json to a document store. |
Airnayde, can you please share with me also. I would greatly appreciate it. |
I would also very much appreciate it Airnayde! If you can post the solution here that would be awesome, a lot of people are probably trying to figure out the same thing! Thanks!!! |
@airnayden Hi |
Can you please add export option in code? Need to export the design to a single image. |
Hello there. If you send me some project requirements we can arrange a deal Regards
|
Give me your mail id. |
If you want to contribute to the open source project then create a pull
|
[email protected]
|
hi, |
Create a function, that would replace the tshirt image with long sleeve or hoodie. Call the function on change of the drop down. It should be that simple.... I currently, do not have time to commit/help with new features. Since this is open source I hope somebody can help you and contribute to the project. |
hi, i really appreciate it if someone can help me on how to export the front back design .. |
Hello Every One i create Export Function in this script. |
Thanks @imomin for creating this. |
yes sir.... currently i create just demo of front side..... but you can try to same thing in Back side........ Best Regards |
Thanks. But the front and back are inside one ID, I don't know how to export that. Thanks |
please send me Your Source code..... so, I can fix and help you.
Best Regards
…On 6 October 2017 at 16:31, Opeyemi Ibrahim ***@***.***> wrote:
Thanks. But the front and back are inside one ID, I don't know how to
export that.
Mind you if the back side is in view and you save, you will see the back
view save and not the front view.
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANkiPYbXylg5PCpWOyH_C-UviC7CK1yyks5spgiTgaJpZM4BBY9n>
.
|
Below is my code. Thanks JS $('#o_back').click(function(){
What I did is on click of the back button I tried to switch the canvas |
Dear Imomin,
I really interested about your sharing source to build a designing tshirt however i don't know how to export front and back of this tshirt.
Can you show me how to do it ?
Thank you !
The text was updated successfully, but these errors were encountered: