How to scale all images for print output?

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
beagley
Sr. Propeller Head
Posts: 182
Joined: Tue May 06, 2008 1:33 pm
Location: Vermont

How to scale all images for print output?

Post by beagley »

I want to shrink all of my images for print output while leaving them full-size for WebHelp output.

What's the best way to do this?

I've tried fiddling with the different mediums in the CSS, setting the "width" attribute for the <img>, or the <div> that contains the images, but none of those seem to work.

Is there any way to automatically shrink all of my images for PDF output, while leaving them full size for screen output?

(I'm hoping to avoid having to have two copies of each image and using conditionals.)
Hobbes
Propeller Head
Posts: 39
Joined: Thu Aug 14, 2008 9:39 am

Re: How to scale all images for print output?

Post by Hobbes »

Have you tried going into the style sheet (img>unclassified>max-width) and setting it to a suitable size for the print medium?

That is what I am doing and it seems to work fine.
beagley
Sr. Propeller Head
Posts: 182
Joined: Tue May 06, 2008 1:33 pm
Location: Vermont

Re: How to scale all images for print output?

Post by beagley »

I missed that one.

Are you using a max-width of pixels, or percentage?

If I do pixels, then it scales them all to (for example) 300 pixels or less. The problem with that is that my images start at all different sizes. Scaling them all down to 300 pixels makes for a really inconsistent result.

When I set Max-Width to a percentage, it seems to shrink images that are larger than a certain size... I think it is doing a percentage of the parent element, NOT a percentage of the original image. It will shrink all images to 50% of the parent block element or less, for example.

What I REALLY want is to shrink all images to 50% of their original size, for example. But setting the Box-->width and/or Box-->height attributes to percentages doesn't accomplish that at all.

Thanks for showing me a new attribute... unfortunately, it still doesn't solve my problem. Maybe there's some clever way to use it in combination with another element... hmm.
-d
beagley
Sr. Propeller Head
Posts: 182
Joined: Tue May 06, 2008 1:33 pm
Location: Vermont

Re: How to scale all images for print output?

Post by beagley »

(By the way, my scaling needs are a little less strict for non-print stuff. I'm going to use Max-Width for my WebHelp images. Thanks!)
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: How to scale all images for print output?

Post by LTinker68 »

beagley wrote:I'm going to use Max-Width for my WebHelp images.
FYI.. IE 6 ignores max-width and max-height.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Post Reply