Support Forums - Classified Ads Script Osclass
Osclass theme support => Free themes => Topic started by: Альтаир Ибн Ла-Ахад on December 14, 2016, 11:55:22 PM
-
Hi all. I have some problem with my watermark... I upload png image as watermark with transperency background but when i upload some listing's image the watermark in part out of listing image is black (see attachement) Please help me fix it.
Thank you very much
-
This is osclass related issue, might be bug, you can report it to them (I know they have similar bug on their market where png images getting black background)
-
Thak you vor help.
-
How was this problem solved? She is still present
-
Is it? Send some png that cause it, we may check that
-
Absolutely any with a vertical arrangement. See the example
-
Image woth vertical alignment cause problems with watermark?
-
No, you don't understand. If you load a vertical image, as in the example, white fields are formed accordingly (necessary to preserve proportions). Accordingly, the transparent watermark (.png) on the white margins has a black background.
-
Well, what do you say? Is it possible to get rid of the black background under the watermark? Of course, you can turn on Image Magic, as some advise, but it often sets the wrong orientation with images and turns them 90 degrees.
-
@atba
Ok so you actually use GD Library instead of ImageMagick.
In that case I would say it is bug of GD library and not of osclass.
You may try to use "best crop" option to avoid white spaces or place watermark into middle of picture as workaround here.
-
Well, it's easier to disable the watermark altogether. But this is not the solution. Then tell me how to make Image Magic not rotate images when loading?
-
@atba
In oc-includes/osclass/ItemActions.php you have this line:
$img = $imgres->autoRotate();
if you change it to following, auto rotate should be disabled:
$img = $imgres;
-
A great solution. Thanks!