Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with watermark #672

Open
fmronan opened this issue Dec 9, 2015 · 2 comments
Open

Problem with watermark #672

fmronan opened this issue Dec 9, 2015 · 2 comments
Labels
State: Need To Investigate 🔎 This item requires additional investigation to determine a resolution.

Comments

@fmronan
Copy link

fmronan commented Dec 9, 2015

Sorry for my english.
Since to have a problem with watermark, don't work correctly.
class WatermarkFilterLoader is not call. Try with var_dump() and die() in __construct()don't enter in it.

@fmronan
Copy link
Author

fmronan commented Dec 9, 2015

same problem with simple config
watermark:
filters:
relative_resize: { widen: 1600 }
watermark:
image: %kernel.root_dir%/Resources/watermarks/watermark.png
size: 0.5
position: center

in my view
{{ entity.image.AssetPath | imagine_filter('watermark')}}"

and with runtimeConfig in my controller

$runtimeConfig = array(
'watermark' => array(
'image' => $this->container->getParameter('watermark_dir') . $entity->getProprio()->getWater()->getAssetPath(),
'position' => "center"
)
);

$browserPath = $this->container->get('liip_imagine.cache.manager')->getBrowserPath($entity->getImage()->getAssetPath(), 'genus_watermark', $runtimeConfig);

    $deleteForm = $this->createDeleteForm($entity->getId());

    return $this->render('MediasBundle:Images:show.html.twig', array(
        'entity'      => $entity,
        'delete_form' => $deleteForm->createView(),
        'browserPath' => $browserPath,
    ));
}

in my wiew
"{{ browserPath }}"

@michellesanver
Copy link
Contributor

Let's investigate this together with #537 and make a new issue to look at watermarks in general :)

@michellesanver michellesanver added the State: Need To Investigate 🔎 This item requires additional investigation to determine a resolution. label Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
State: Need To Investigate 🔎 This item requires additional investigation to determine a resolution.
Projects
None yet
Development

No branches or pull requests

2 participants