Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using an emoji in body text distorts image #343

Open
Nova-Scotia opened this issue Jan 17, 2025 · 0 comments
Open

Using an emoji in body text distorts image #343

Nova-Scotia opened this issue Jan 17, 2025 · 0 comments

Comments

@Nova-Scotia
Copy link

I'm trying to include images in my email, and it took me a while to figure out what the problem was, but I've isolated it. Using an emoji in the email distorts the dimensions of images that are added.

When I insert an image like this, everything looks good - no emoji:

image <- add_image(file = "C:/Users/Folder/logo.jpg", width = 100)

body_text <-
  md(glue(
    "
Hello,

I just wanted to let you know that the **1972 Rickenbacker
4001** is here to pick up. Here is a picture of it:

{image}

Cheers
"
  ))


# Compose the email message
draft_email("[email protected]", subject = "test", body = body_text)

Image

But, when I include an emoji in my email body, the image is distorted. Sometimes the distortion is lengthwise and sometimes width.

image <- add_image(file = "C:/Users/Folder/logo.jpg", width = 100)

body_text <-
  md(glue(
    "
Hello,

I just wanted to let you know that the **1972 Rickenbacker
4001** is here to pick up. 😁 Here is a picture of it:

{image}

Cheers
"
  ))


# Compose the email message
draft_email("[email protected]", subject = "test", body = body_text)

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant