fossasia / badgeyay

Attendee Badge Generator for Conferences
GNU General Public License v3.0
1.79k stars 447 forks source link

Modify GenerateBadges class #820

Closed vaibhavsingh97 closed 6 years ago

vaibhavsingh97 commented 6 years ago

I'm submitting a ...

Current behaviour: currently, Generate Badges only consider image and csv

Expected behaviour: It should consider event logo, font, font-size, font-color, etc

we can use ReportLab library to genrate badges.

Yes, I am interested in working on this issue

Views @djmgit @ParthS007 @gabru-md @yashLadha

yashLadha commented 6 years ago

@vaibhavsingh97 It is implementing the changes of font,, font-size and font-color already please have a look at #695 and event logo and other things have to be done after we have a stable app. So please try to work along the group as our main agenda is to refactor frontend. Cheers :+1:

gabru-md commented 6 years ago

This task is way ahead of what we are doing currently

ParthS007 commented 6 years ago

@vaibhavsingh97 This issue is related to badge enhancement and I don't understand why you are opening such issues when we have similar issues already opened for these features. Please follow best practices. Closing this in reference to #354 , #595 & #343 Avoid opening duplicate issues in future :+1: Closing this :+1:

gabru-md commented 6 years ago

yes

vaibhavsingh97 commented 6 years ago

@ParthS007 this issue is for enhancement of current system. ReportsLab can do what badgeyay needs. Also, you can ask me to close the issue 😞

gabru-md commented 6 years ago

I am sorry, I guess he closed it by himself.

Can you please close the issue @vaibhavsingh97 ? :smile:

ParthS007 commented 6 years ago

Yes , Please discuss these features in the referenced Issues. No need of creating duplicate issues and mention the use of ReportsLab in the respective issue itself. Please follow best practices by not opening duplicate issues. cheers !! Hence, I request you to please close the issue. :+1:

yashLadha commented 6 years ago

Currently lxml and caurosvg is there to do the work which report lab is doing. I think there is no need to move to other system. Can you provide some cases where it will benefit as I can't see any use case to switch the code for sake of one library. The approach which we are following currently will give us advantage in extending functionalities, as previously we have made. Cheers

On Wed 23 May, 2018, 2:44 PM Parth Shandilya, notifications@github.com wrote:

Yes , Please discuss these features in the referenced Issues. No need of creating duplicate issues and mention the use of ReportsLab in the respective issue itself. Please follow best practices by not opening duplicate issues. cheers !! Hence, I request you to please close the issue. 👍

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fossasia/badgeyay/issues/820#issuecomment-391278500, or mute the thread https://github.com/notifications/unsubscribe-auth/ARMqT9qJU1OwewzclSdbqjythP1mj69uks5t1ShsgaJpZM4UHpWp .

vaibhavsingh97 commented 6 years ago

@djmgit @gabru-md @ParthS007 @yashLadha To generate badges we need

Current Scenario

We are writing code for doing small things like changing font, changing font size, etc.

After integrating ReportLab

It will help in creating customized PDFs for different users or different pieces of content It has an inbuilt function to change page layout, typography, Drawing Operations, will ease if we deal with layers. So basically you can say that what we are doing with PyPDF, CairoSVG, and other libraries, we can use ReportLab to generate badges with lot fewer lines of codes and it will do an amazing job.

For the sample please refer to https://www.reportlab.com/documentation/tutorial/product-catalogue/

yashLadha commented 6 years ago

Writing code for such things like font size and weight gives us advantage as we know how to implement them and extend them for later badge designs. The problem with this is same as we are constraint to have a definite structure and just merely change the value of variable. Whereas conference badge has a dynamic svg editor in place which works on the same philosophy as we are doing generating badges from svg. They have placed position pointers in the svg as well and create a js code to manipulate the pointers to dynamically resize the content. This things enable dynamic generation of badges whereas relying on ReportLab will constraint us as we can only change the images and text in the ste of defined config which we can do currently as well and the system currently is working pretty fine. If we go with creatign a dynamic config for reportlab them it will be a tedious task and it is much easier to manipulate svg realtime them the config for reportlab which cannot preview in real time as well. For reference and more insight visit this link : Link This is already discussed in the first meeting. Isn't it @ParthS007 @gabru-md @djmgit

gabru-md commented 6 years ago

yes, it was already discussed in the first meeting!

ParthS007 commented 6 years ago

Yes, We already have a discussion on this and as @yashLadha said relying on ReportLab will constraint us as we can only change the images and text in the set of defined config which we can do currently as well.

ParthS007 commented 6 years ago

closing this in reference to chat on gitter channel :+1: