/    Sign up×
Community /Pin to ProfileBookmark

Email – White lines between images (Sub pixel?) when scaled.

Hi everybody!

Been spinning my wheels a bit one for awhile and haven’t been able to solve this. Any help or insight would be appreciated! So where I’m at…

[upl-image-preview url=https://www.webdeveloper.com/assets/files/2019-04-26/1556290927-810566-screen-shot-2019-04-26-at-110147-am.png]

When html email displays on a desktop system, unscaled the “seams” between sliced images look fine. But as this same email is scaled down gaps appear between the images(see above image). If you scale the image down slowly in dev tools these lines will fade in and out. One of the reasons I suspect this being a sub-pixel issue…?…. When doing render test on Email on Acid or ReturnPath this issue tends to appear on mobile devices which have scaled the email down to fit on the screen. The code pen share link is below(linking functionality wouldn’t work, sry). If you set the view to “debug” & then enter the browsers dev mode & scale the view down you “should” see the white line affect I’m describing.

https://codepen.io/GimbalLock/pen/JVxXoj?fbclid=IwAR16N2cRJUnSgG1-LrJ9maBcNuyZoeu5w0VM4vupcD2oTV-Lt0mJ2HX1UAQ

The workflow goes something like this. The email is designed in Photoshop, doc spec are 1080 X some random height, normally 4K to 8K. These images are then sliced in Photoshop(PS), exported out, then reassembled into multiple tables, images are wrapped in anchors for linking and placed in the <td>. In certain cases the <a><img> are all children in the same <td>… The html email width/max is 540px, all image assets that are brought it as set at half the value they were created in PS. All sliced/exported images are of even width/height to avoid any decimal values being set in the image dimension w/h attributes in the html.

In the html build there I think most of the recommended practices are being followed. The container tables width is set to 100%, content table is set at 540px, along with all its children tables. Each table has the attributes border, cellpadding / spacing set to 0. I have tried various css rules along with setting the background image via css instead of the image tag with the same results.

to post a comment
HTML

0Be the first to comment 😎

×

Success!

Help @aPavlick spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...