Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes

The link is there when you roll over; and it goes to the link. But there is no image in Safari or an image with a cross through it -- broken image? -- in Chrome and Edge.

Dropping it onto any of those three browsers shows it correctly, and with the hyperlink

I am wondering two things:

  1. Does the image need to be a specific or maximum size?
  2. Does the image need to be or not be a specific file type?
Thanks.
in how_to by (230 points)
  

1 Answer

0 votes

The image should be saved as an SVG file (which stands for Scalable Vector Graphic), so it will scale.

The following article includes steps and a video where Justin shows how to make it:

If you look at 1:36 of the video, you can see that the rectangle that Justin adds that is larger than the artboard is 56.67px x 37px, so that might help as a guide for the size.

by (29.9k points)

Hi, Myra...I knew to save it as an SVG. But I am starting out with a .png image that I open in Illustrator and then do what is in the video (add the slightly larger rectangle.) And then save as an SVG. And, yes, I used those measurements you mention, and it still didn't work. That was what prompted my above question. 

Then I had a thought: Maybe I need the image to be an Illustrator (vector) graphic? So I used the same Gift Box image I had selected previously ( a png file), but the SVG version. Then I did all of the steps discussed, even added text. And it worked! (see the image below)

So make sure people know that this solution only works for an image when that image is an SVG or vector image.

none

Hi Jay,

Thank you for adding the details of your experience, and I'm so glad that you got it to work! :)

Because a PNG is a raster (made with pixels) format and an SVG is a vector format, users who would like to create SVGs (Scalable Vector Graphic) to add to the Viewer Display should only use vectors in the creation of their SVG.

If a user starts with a PNG (or other raster graphic format) and doesn't have a vector version available, they can use Illustrator's Image Trace feature to automatically convert the raster graphic to a vector (by using various presets or customizing the Image Trace settings) or Illustrator's tools to manually trace the content in the PNG. 

Another option for converting a raster graphic to a vector graphic would be to use Adobe Capture.