Scribus > PDF Generation

cropping images to the visible part on export

(1/2) > >>

Dogil:
Do you have ideas how to crop images in PDFs when exporting (or later)?
https://graphicdesign.stackexchange.com/questions/154787/is-there-an-automated-way-to-remove-cropped-out-regions-of-embedded-images-in-or
I's been discussed here and the mailinglist before but maybe things have changed since.

toyotadesigner:
Select the image.

Go to Image Properties. Select Free Scaling. Drag the handles to the place where you want to have the image boundaries.

Remain in Image Properties. Go to X-Pos and Y-Pos. Modify the values until the image fits your needs. You can also scale the image with the X-Scale (don't forget to lock the image ratio with the chain icon next to these values).

If everything looks great, generate a PDF.

To prevent image theft and if you don't want to print the PDF, you can to the export dialog and there to Security, place a checkmark into Use Encryption and submit a password two times. The nobody can extract your images, if you DESELECT the options as shown below.

Nermander:
The issue has been discussed before and for JPEG images you get a quality loss (due to re-compression) if the cropping is not done in multiples of 16 pixels or something like that.

So cropping JPEG images is not trivial if you want to avoid quality losses.

Dogil:

--- Quote from: Nermander on November 26, 2021, 06:38:42 pm ---The issue has been discussed before and for JPEG images you get a quality loss (due to re-compression) if the cropping is not done in multiples of 16 pixels or something like that.

So cropping JPEG images is not trivial if you want to avoid quality losses.

--- End quote ---

I'm quoting Peter Nermander from 11 Years ago:
"The way a JPEG is compressed it has to be recompressed after any
change. Change one pixel and the image has to be recompressed. That is
why using JPEG as a working format during image editing is no good.

It seems however it is possible to do lossless cropping if you crop
along the borders of the "blocks" the image is made up of.

And if that is true that would probably be a working solution.It would
of course mean that the cropped images might become a little bigger
than the frame, but not more than 30 pixels (assuming worst case with
16 pixel blocks, giving 15 pixels on each side)."
https://scribus.scribus.narkive.com/9MO4dPPP/image-cropping#post4

Dogil:
If I may add: I feel like the quality-loss-by-image-recompression argument is moot because:
1. you should work with lossless compression formats anyway
2. if the loss in quality becomes visible, you already have not enough resolution or a too high compression rate set.
3. you could just crop on block boundaries as detailed above.
4. if you have a pdf which is too large because of large but only partially visible images, you have the choice over saving the whole image in a crap resolution or cropping the small part which you actually need. Re-compression artifacts will be the lesser evil by far in this case.

Navigation

[0] Message Index

[#] Next page

Go to full version