Images in Notebooks to HTML
|
f5d8a7ff3fb04704040b9184b97bbe61
|
Images in Notebooks to HTMLby marcia - 07:10AM, Nov 12, 2003 |
|
Is there a way to preserve the quality of images (photographs) when exporting a notebook to HTML? There seems to be a loss of quality from the original (.jpg). It looks like they are changed to .gif.
|
|
|
Can you tell me a little more about what you're doing? NoteBook only uses GIF when it needs to include transparency in an exported image. If you have an image in a rotated Media Frame, for example, the only way to make that look right is to create an image with transparency, and the only way to do that (and to have it display correctly on all platforms) is to use GIF. Or there could be a bug.
|
|
|
It's a jpg in a media frame but it isn't rotated. Frame rotation is 0. Scale is 1.0. Maybe there's something weird with my graphic. I'll try out some more images and settings...
|
|
|
Part of what I said above about when NoteBook uses GIFs because is incorrect. NoteBook uses GIFs when it needs to create transparent images - that's true. But transparent GIFs look terrible and so NoteBook does its best not to ever use them. If it does use them, it's because it couldn't find a way around it. A rotated Media Frame is no longer a rectangle and therefore needs special handling. NoteBook could simply create a transparent GIF and be done but instead it computes the color of the background that the Media Frame is sitting on. If it's a solid color, NoteBook creates an opaque image composed of the rotated MF against a color background. Media Frames with a drop shadow have the same problem, and NoteBook handles them in the same way: it creates an image composed of the MF and its drop shadow against a color background. NoteBook is forced to create a transparent GIF if your MF is rotated or has a drop shadow and the page has a background image. In this case there's no way NoteBook can pre-compute the background that the MF will sit on. You can work around this by removing the drop shadow/rotation. So, if your page has a background image and the MF is partially transparent, you'll get a transparent GIF. Hopefully this explains your problem. If not, if you send me a screenshot of the part of the Notebook page with the MF (to support@circusponies.com) I can figure out what's going wrong.
|
|
|
Thanks, I set the background to "none" and it's working now, even with the media frame set to shadow (also line and photo border). The image changes from jpg to png on export but at least that is good quality for a photo.
|
|
|
I tried turning off the color of the page as well as all the border attributes of the media frame -- the image still gets converted to png. The quality of the image is very good but the size increases to three times the size of the jpeg. It would be nice if there could be a way to use jpegs.
|
|
|
That's a good idea. I'll tweak NoteBook so that if the MF contains a JPEG the MF image will also be a JPEG instead of a png.
|
Jayson
Member
04:54PM, Nov 12, 2003