Page 1 of 1

Custom Jersey

Posted: Sun Oct 23, 2022 7:33 pm
by Gipfelstuermer
Hello,

another small but relevant topic (especially in the sprint) for newcomers, and perhaps some comeback teams, is the custom jersey.

Does anybody remember how exactly it worked in Flash? We can share the empty jersey for download in React and we can also let users upload their custom jersey in React.

But, we only want people to edit parts of the picture (only the grey areas), so how do we ensure this? Does anybody know a technical solution? (preferred) Somebody with experience in graphic design here? ^^ Or would we need a JC = Jersey Committee = Some trustworthy users who look at all uploaded custom jerseys and approve them before they go online?

Image

Re: Custom Jersey

Posted: Wed Oct 26, 2022 12:34 pm
by Gipfelstuermer
No graphic designers here? :D

Seeing this funny pixelated rider, we could also have a completely new rider picture for the sprint, if somebody is motivated...

But it's really more about the technology to have parts of the rider editable, but other parts not editable. Looking for a technology for that...

Re: Custom Jersey

Posted: Sat Oct 29, 2022 2:29 am
by Schnuggeritos
Never heard of a way to protect parts of an image from changes.

Maybe, but I'm not sure if this is realisable, teams can download this version of the rider. They can edit the complete rider. When uploading the server merges the upload and a mask over the uploaded one that overwrites everything but the grey parts. Something like this
https://www.npmjs.com/package/merge-images

Maybe this could solve the Problem.

Re: Custom Jersey

Posted: Mon Nov 21, 2022 10:35 am
by Gipfelstuermer
Schnuggeritos wrote:
Sat Oct 29, 2022 2:29 am
Never heard of a way to protect parts of an image from changes.

Maybe, but I'm not sure if this is realisable, teams can download this version of the rider. They can edit the complete rider. When uploading the server merges the upload and a mask over the uploaded one that overwrites everything but the grey parts. Something like this
https://www.npmjs.com/package/merge-images

Maybe this could solve the Problem.
Thanks for this hint, Schnuggeritos. It led us in the right direction. We ended up solving it the following way:

Frontend: react-konva for previewing the jersey
Backend: gd module in php for image processing and saving

Now the Schnuggeritos can finally have their own jersey! :)

Re: Custom Jersey

Posted: Mon Nov 21, 2022 11:02 am
by team fl
You forgot the bottle!!!


:D

Re: Custom Jersey

Posted: Mon Nov 21, 2022 11:28 am
by Gipfelstuermer
team fl wrote:
Mon Nov 21, 2022 11:02 am
You forgot the bottle!!!


:D
No no, prefer black shoes / grey bottle combination over black/black combination! And you can make your own design anyway :)

Re: Custom Jersey

Posted: Mon Nov 21, 2022 11:50 am
by team fl
Gipfelstuermer wrote:
Mon Nov 21, 2022 11:28 am
team fl wrote:
Mon Nov 21, 2022 11:02 am
You forgot the bottle!!!


:D
No no, prefer black shoes / grey bottle combination over black/black combination! And you can make your own design anyway :)
I already have an unbeatable design ;). But I've heard that the man, the myth, the legend, famous jersey designer (among many other things) Takashi Murakami is back in town for a short time (is it christmas yet?)...

Re: Custom Jersey

Posted: Mon Nov 21, 2022 12:54 pm
by Schnuggeritos
Gipfelstuermer wrote:
Mon Nov 21, 2022 10:35 am
Thanks for this hint, Schnuggeritos. It led us in the right direction. We ended up solving it the following way:

Frontend: react-konva for previewing the jersey
Backend: gd module in php for image processing and saving

Now the Schnuggeritos can finally have their own jersey! :)
Glad I could help. I'll be working on my jersey in the next few days. I already have a few ideas.

Re: Custom Jersey

Posted: Mon Nov 21, 2022 1:22 pm
by Casablanca ProTeam
How do you edit your jerseys guys ?
I tried the in game edit, but it does not save jersey.

Re: Custom Jersey

Posted: Mon Nov 21, 2022 2:15 pm
by flockmastoR
Casablanca ProTeam wrote:
Mon Nov 21, 2022 1:22 pm
How do you edit your jerseys guys ?
I tried the in game edit, but it does not save jersey.
Probably it needs a cache deletion, not sure if it is working proper, but it is a common display problem

Re: Custom Jersey

Posted: Mon Nov 21, 2022 2:47 pm
by Gipfelstuermer
flockmastoR wrote:
Mon Nov 21, 2022 2:15 pm
Casablanca ProTeam wrote:
Mon Nov 21, 2022 1:22 pm
How do you edit your jerseys guys ?
I tried the in game edit, but it does not save jersey.
Probably it needs a cache deletion, not sure if it is working proper, but it is a common display problem
Might be that there was a small error when releasing v 1.3.0. We'll fix it soon.

Re: Custom Jersey

Posted: Mon Nov 21, 2022 6:36 pm
by Schnuggeritos
Gipfelstuermer wrote:
Mon Nov 21, 2022 2:47 pm
Might be that there was a small error when releasing v 1.3.0. We'll fix it soon.
As i'm not sure if I understood it correctly I have to ask: Does it not save the new Jersey or is it just a display-thing for us on the profile page?

Re: Custom Jersey

Posted: Mon Nov 21, 2022 11:33 pm
by Gipfelstuermer
Casablanca ProTeam wrote:
Mon Nov 21, 2022 1:22 pm
How do you edit your jerseys guys ?
I tried the in game edit, but it does not save jersey.
Schnuggeritos wrote:
Mon Nov 21, 2022 6:36 pm
As i'm not sure if I understood it correctly I have to ask: Does it not save the new Jersey or is it just a display-thing for us on the profile page?
Now it should work.

(2 files had not been updated correctly on the server.)

Let me know if it still doesn't work for you.

Re: Custom Jersey

Posted: Mon Dec 12, 2022 9:47 pm
by Casablanca ProTeam
Gipfelstuermer wrote:
Mon Nov 21, 2022 11:33 pm
Casablanca ProTeam wrote:
Mon Nov 21, 2022 1:22 pm
How do you edit your jerseys guys ?
I tried the in game edit, but it does not save jersey.
Schnuggeritos wrote:
Mon Nov 21, 2022 6:36 pm
As i'm not sure if I understood it correctly I have to ask: Does it not save the new Jersey or is it just a display-thing for us on the profile page?
Now it should work.

(2 files had not been updated correctly on the server.)

Let me know if it still doesn't work for you.
oh sorry for the late answer it works fine now thanks

Re: Custom Jersey

Posted: Wed Feb 08, 2023 11:18 pm
by cataracs
Will the National Jerseys be added to the sprint screen?

Re: Custom Jersey

Posted: Wed Feb 08, 2023 11:48 pm
by Gipfelstuermer
cataracs wrote:
Wed Feb 08, 2023 11:18 pm
Will the National Jerseys be added to the sprint screen?
on my self-imposed long to-do-list for the weekend ! (same for leader jersey's in general)

Re: Custom Jersey

Posted: Sun Feb 12, 2023 12:02 am
by Gipfelstuermer
cataracs wrote:
Wed Feb 08, 2023 11:18 pm
Will the National Jerseys be added to the sprint screen?
Available in v1.15.0 :)

Let us know if any are missing/wrong. You can also re-design them if you want.

Re: Custom Jersey

Posted: Sat Feb 18, 2023 10:26 pm
by cataracs
The Turkish jersey is missing