xitanggg / open-resume

OpenResume is a powerful open-source resume builder and resume parser. https://open-resume.com/

Home Page:https://open-resume.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to add Image (Avatar)

Al-Fareed opened this issue · comments

I tried adding avatar. It displays in the resume preview section, when I download the pdf, The image is removed. It doesn't come in pdf after downloading the resume

Also I am getting an error img.attribute is not a function, When I add <Image { including other attributes as well }/> tag
File : components/Resume/ResumePDF/index.tsx
`
import Image from "next/image";
import Logo from "public/assets/TVLogo.png"
..all the code

         <Image src={Logo} alt="logo" height={70} width={100} />
        <ResumePDFProfile
          profile={profile}
          themeColor={themeColor}
          isPDF={isPDF}
        />
        {showFormsOrder.map((form) => {
          const Component = formTypeToComponent[form];
          return <Component key={form} />;
        })}`

Error:
Unhandled Runtime Error TypeError: img.getAttribute is not a function

Anyone working on this ?

Try with Image tag of react-pdf by importing the below statement

import Image from "react-pdf";

if it works please react with 👍

Getting same issue image is visible in downloaded pdf

Screenshot 2024-02-20 143347
How is this