February 08
On 10/18/24 7:57 PM, Andrea Fontana wrote:
> On Wednesday, 16 October 2024 at 12:58:29 UTC, Andrea Fontana wrote:
>> Hey everyone,
>>
>> I've been working on a small project lately and thought I'd share it with you all. It's a simple QR code generation library. It is based on Project Nayuki's library.
> 
> I have released a small update with some improvements:
> 
> - Added SVGZ format (still with no external dependencies!)
> - PNG files now use an indexed color palette and maximum compression
> - Deprecated save() in favor of saveAs()
> 
> Now, a QRCode sized 2500x2500px (!) takes ~3.5KB as a PNG or ~750 bytes as an SVGZ.
> 
> Andrea Fontana
> 
> 

I'm trying to create a vCard to store contact details that will automatically save to a smartphone's contact list, but I'm having trouble. Could you provide an example of a vCard that does this?
February 10
On Saturday, 8 February 2025 at 06:11:59 UTC, confuzzled wrote:
> On 10/18/24 7:57 PM, Andrea Fontana wrote:
>> On Wednesday, 16 October 2024 at 12:58:29 UTC, Andrea Fontana wrote:
>>> Hey everyone,
>>>
>>> I've been working on a small project lately and thought I'd share it with you all. It's a simple QR code generation library. It is based on Project Nayuki's library.
>> 
>> I have released a small update with some improvements:
>> 
>> - Added SVGZ format (still with no external dependencies!)
>> - PNG files now use an indexed color palette and maximum compression
>> - Deprecated save() in favor of saveAs()
>> 
>> Now, a QRCode sized 2500x2500px (!) takes ~3.5KB as a PNG or ~750 bytes as an SVGZ.
>> 
>> Andrea Fontana
>> 
>> 
>
> I'm trying to create a vCard to store contact details that will automatically save to a smartphone's contact list, but I'm having trouble. Could you provide an example of a vCard that does this?

```
import std.stdio;
import qr;

immutable vcard =
`BEGIN:VCARD
VERSION:4.0
FN:Simon Perreault
N:Perreault;Simon;;;ing. jr,M.Sc.
BDAY:--0203
GENDER:M
EMAIL;TYPE=work:simon.perreault@viagenie.ca
END:VCARD`;

void main()
{
   QrCode(vcard).save("vcard.png");
}
```

You just need to create a qr with a vcard string. More info: https://en.wikipedia.org/wiki/VCard

Andrea
February 10
On Monday, 10 February 2025 at 09:25:12 UTC, Andrea Fontana wrote:
>
> ```
> import std.stdio;
> import qr;
>
> immutable vcard =
> `BEGIN:VCARD
> VERSION:4.0
> FN:Simon Perreault
> N:Perreault;Simon;;;ing. jr,M.Sc.
> BDAY:--0203
> GENDER:M
> EMAIL;TYPE=work:simon.perreault@viagenie.ca
> END:VCARD`;
>
> void main()
> {
>    QrCode(vcard).save("vcard.png");
> }
> ```
>
> You just need to create a qr with a vcard string. More info: https://en.wikipedia.org/wiki/VCard
>
> Andrea

You can use a generator like this and then create a qr with the output string: https://vcardmaker.com/
1 2
Next ›   Last »