Forum


Replies: 6   Views: 2245
Addimage null error
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by CarlEOgden  · 05-03-2020 - 18:38

Hi

Thanks for the info, I've just captured what we are sending to cause this routine to crash and the variables and their values are:

src = ...vhubl-a54be1def8bed4834ed3212e2683a959.jpg
Photo Width = 2048
Photo Height = 1366
height = 197
width = 295
textWrap = 0
imageAlign = left
spacingTop = 0
spacingLeft = 0
spacingRight = 0
spacingBottom = 8

This 'src' file is there (I've done a file_exists() prior to the call and will only work if it does! I've removed some of the url for security reasons!

Also, the variables above "Photo Width/Photo Height" are from the actual photo.

Any ideas if the addImage routine extracts any info from the image?

Cheers
Carl.