c# - Android gmail gif flickering -


i'm creating gif file using camera in c#, sending gif persons email. i've attached gif , created html email, display gif inline using img tag src being cid of attached gif file.

its working except androids gmail client. when view email in android gmail client, gif flashes, showing background either between frames, @ end of gif sequence, or showing gif once gif disappears.

i using table (it seems divs made worse), , no background images or colors. seemed things did fixed problem because playing fine, after opening email couple times or sending couple more, gif again (start flashing).

is bug in gmail client or something? nothing i've done seems help. gif plays in every other client i've tried , in browser works fine.

is there try might fix problem?

i'm sure people want see code, here is, super simple

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="min-width:638px;">     <tr>         <td align="center" valign="top">             <table width="640px" border="0" cellspacing="0" cellpadding="0" align="center">                 <tr>                     <td width="78px" height="482px" align="center">                         <img alt="xxxxxxx" src="cid:b01_frameleft" border="0" style="display:block;"></a>                     </td>                     <td width="484px" height="484px" align="center">                         <img alt="xxxxxxx" src="cid:b02_gif" border="0" width="484" height="484" style="display:block;"></a>                     </td>                     <td width="78px" height="482px" align="center">                         <img alt="xxxxxxx" src="cid:b03_frameright" border="0" style="display:block;"></a>                     </td>                 </tr>             </table>         </td>     </tr> </table> 

so seems if there possibly more 1 "layer", gif "may" flash. had multiple tables wrapped in single table. after removing container table, gif stopped flashing. wonder if android gmail having problem because maybe didn't know if should display next frame of gif or containing table? still don't know sure, i'm can considered bug, i'm surprised there little on internet this.

anyway, fix problem did.

  • removed bgcolors , backgrounds html in email
  • removed container table contained tables layout, 1 of them contained gif
  • changed using divs using tables

not sure if needed or not, after doing things don't have problem gif flashing anymore


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -