sigal icon indicating copy to clipboard operation
sigal copied to clipboard

No resize and copyright plugin ?

Open rhaamo opened this issue 6 years ago • 3 comments

I would have to no resize pictures but also use copyright plugin but it seems that the copyright plugin hooks to the resizing of the pictures, and then, isn't triggered if

use_orig = True
# or
img_processor = None

Is there a possibility to achieve a non-resize but still have copyright watermark using sigal ?

rhaamo avatar Jan 29 '18 12:01 rhaamo

It is called after the resize indeed, but it should be called even if img_processor is None: https://github.com/saimn/sigal/blob/master/sigal/image.py#L132 Are you sure that this doesn't work ?

saimn avatar Feb 06 '18 22:02 saimn

oh you are right, it was really small and I didn't catch it first.

however with img_processor = None, thumbnails doesn't have the copyright anymore, only the "final picture" has.

rhaamo avatar Feb 07 '18 11:02 rhaamo

I looked at the code and there is nothing specific for thumbnails. I think thumbnails have the copyright because there are created on the "resized" image, which should work also if the image is not resized (with img_processor = None). But I have not tested.

saimn avatar Feb 10 '18 00:02 saimn