PHP Classes

Image transparancy

Recommend this page to a friend!

      PHP vCard Library  >  All threads  >  Image transparancy  >  (Un) Subscribe thread alerts  
Subject:Image transparancy
Summary:Transparancy is lost
Messages:10
Author:J. Sinnema
Date:2021-07-13 16:06:40
 

  1. Image transparancy   Reply   Report abuse  
Picture of J. Sinnema J. Sinnema - 2021-07-13 16:06:40
Did anyone succeed to change the script to keep image transparancy?

  2. Re: Image transparancy   Reply   Report abuse  
Picture of Stefan Kientzler Stefan Kientzler - 2021-07-14 16:22:45 - In reply to message 1 from J. Sinnema
I've updated the package and added transparency support for the contact image.

Just download new Version 1.04 from here ;-)

  3. Re: Image transparancy   Reply   Report abuse  
Picture of J. Sinnema J. Sinnema - 2021-07-14 20:40:46 - In reply to message 2 from Stefan Kientzler
Thank you very much for the super fast service :-)

It is a bit too late now, but tomorrow I will certainly test the updated version!

  4. Re: Image transparancy   Reply   Report abuse  
Picture of J. Sinnema J. Sinnema - 2021-07-15 08:58:11 - In reply to message 2 from Stefan Kientzler
Unfortunately I am using PHP 7.2 which means there are some compatibility issues with the updated package.

After a quick scan of the package I think there are only 3 changes in VCardContact.php related to the image transparency:

1. removed line: curl_setopt($curl, CURLOPT_BINARYTRANSFER, true);
2. added line: imagealphablending($img, true);
3. added line: imagesavealpha($img, true);

After making these changes I still have no retained transparency...

Have I missed something?


  5. Re: Image transparancy   Reply   Report abuse  
Picture of Stefan Kientzler Stefan Kientzler - 2021-07-15 11:24:36 - In reply to message 4 from J. Sinnema
OK - I'm working with 7.4 and in some projects already with 8.0 ...

As far as transparency is concerned, only the two added lines you mention are relevant. The removed line fixed another problem related to some few images in the GIF format.

Otherwise, no changes are relevant regarding to the transparency.

PS:
The upcoming changes for the support of multiple homepages per contact could, however, be a bit more problematic, as an internal redesign of the classes has already taken place in addition to the PHP 7.4 additions, which unfortunately means that simply adopting the changed code areas no longer leads to the goal :-(

  6. Re: Image transparancy   Reply   Report abuse  
Picture of J. Sinnema J. Sinnema - 2021-07-15 17:37:57 - In reply to message 5 from Stefan Kientzler
Strange, I've added the two lines at the exact same spot... I will try to do some testing to find out what causes the problem.

The more than 1 homepage problem I already solved with a simple workaround. Not high level programming, but adequate for the job!

  7. Re: Image transparancy   Reply   Report abuse  
Picture of Stefan Kientzler Stefan Kientzler - 2021-07-15 22:43:34 - In reply to message 6 from J. Sinnema
OK -
when creating this package (which I use in several of my projects ...) I hadn't dealt with the topic of transparency in more detail (my customers haven't had a problem with that yet ... or have just not 'noticed' it yet )

the problem of image transparency is always present, as this is not supported by all graphic formats (BMP and JPG do not have transparency - this is ALWAYS lost in these formats!)
And in connection with VCard there are several places where transparency can be lost:
- When setting the 'Portrait' property when creating the VCard file
- When reading the 'portrait' property but not saving it in a format that supports transparency
- ...

I hope you see: my approach is to help you to solve the problem - because in this way we will surely help other users who are facing the same difficulties. (... and we both learn .. and maybe make the package more valuable)

It can help me if you write about your workflow:
- Where does the VCard file come from?
- It can be of great help to send me a sample VCard input file (..contact me here)
- how the image read from the package is saved (as a file, as a blob in a database ...)

regards, Stefanius

  8. Re: Image transparancy   Reply   Report abuse  
Picture of J. Sinnema J. Sinnema - 2021-07-20 10:17:47 - In reply to message 7 from Stefan Kientzler
First of all thanks for your cooperation. As there seems to be no option for attachments, I will just paste the contents of a VCF file here. The image is a transparent logo of a Dutch supermarket chain.

==============================

BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//iOS 14.3//EN
REV:2021-01-29T15:45:02Z
X-ABSHOWAS:COMPANY
X-IMAGETYPE:PHOTO
FN:Albert.nl
UID:cbb3cfa2-ffa6-4748-8513-eecb63dee517
N:Albert.nl;;;;
TEL;TYPE=work:+31886591000
ADR;TYPE=work:;;Provincialeweg 11;Zaandam;;1506 MA;Nederland
item1.URL:www.ah.nl
item1.X-ABLabel:home_page
item2.URL:www.facebook.com/albertheijn
item2.X-ABLabel:facebook
PHOTO;ENCODING=b;TYPE=png:iVBORw0KGgoAAAANSUhEUgAAAX0AAAF9CAYAAADoebhRAAAgA
ElEQVR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5oyOnAb/3lhAhpS2V47cNwf8W8PbFrWT8Lu59VnscG4ZRIuRfBd0OLPMaGyEjm4P6/Ul
uWN4emFdBk2c0suSwTHH8EbhWe9wahuEA8ktCjwEe0kiSMJHJwS+f0/sV8OdtetW8tcepYRhCkP
8W8FngcbWECQl1B5LcsqKDWLXciqATZzby0x29ojtsC+BD2uPSMAyPkK8UaofGjMADz/UwycGhM
eNrErx7ebv25RylR3v8GYahBDAV+ASwSDmIAk0mBysb0/y4oZsblrczdeYwh8hXx7lycSvfXd9F
zf4krX2BK730z9rjzjCMgABMAv4bEC3paKiR1B5jhmEEFGAycC0wXzmoDHecrT2uDMMICeQ/CP8
ZiCsHl1Eas7THkAv+P/Dwm350cTnnAAAAAElFTkSuQmCC
END:VCARD

==============================

  9. Re: Image transparancy   Reply   Report abuse  
Picture of Stefan Kientzler Stefan Kientzler - 2021-07-22 11:07:28 - In reply to message 8 from J. Sinnema
Hi there,

as far as I can reproduce it on my server, the transparency of the logo remains correct!

I saved the vCard you've posted and simply opened it with the example script included in my package (ImportSelect.php) - the PNG file created contains correct transparency information!

So we need to dig into more of the details to solve the problem!

1.
Is the PHP version the source of the error? (Unfortunately I can't test under PHP 7.2 at the moment - but I don't think that's because of that anyway)

2.
Was something lost when you applied my changes?

3.
Has an error crept in somewhere in the code that is not apparent at first glance?

The easiest way would be if you would send me your customized VCardContact.php and your PHP code, which you use to read in the vCard file.

Please contact me directly by email at s.kientzler@online.de

regards, Stefan

  10. Re: Image transparancy   Reply   Report abuse  
Picture of J. Sinnema J. Sinnema - 2021-07-23 14:23:44 - In reply to message 9 from Stefan Kientzler
After checking my customized script again, I found out that I saved all images as JPG files by default..............

I somehow seemed to be thinking that your library automatically preserved the image file type and would save the image in the exact same file type...

I apologize for the time you spent on this and can only hope that it has not been that much...

Not surprisingly, the transparency is preserved after saving all images as PNG files by default!

Thank you very much again for your cooperation.