Giter Site home page Giter Site logo

Comments (10)

dbu avatar dbu commented on June 12, 2024

symfony 6 uses config/bundles.php to load bundles, see https://symfony.com/doc/current/bundles.html

from liipimaginebundle.

CodingBDX avatar CodingBDX commented on June 12, 2024

Okey,so you sée m'y code,where it's thé problèm?

from liipimaginebundle.

dbu avatar dbu commented on June 12, 2024

it is hard to read and understand what you wrote because of the formatting, but i don't see anything obviously wrong. so the bundle is loaded and you get an image path but the filter is not applied when you fetch the image? or do you get some sort of error?

from liipimaginebundle.

CodingBDX avatar CodingBDX commented on June 12, 2024

yes of course, nothing show but if i click on the link into my console

http://0.0.0.0:9900/media/cache/resolve/article/uploads/images/posters/54f8760ec1d98d2bb59a2a206bba6007.jpg

Unable to create image for path "uploads/images/posters/54f8760ec1d98d2bb59a2a206bba6007.jpg" and filter "article". Message was "Unable to open image /var/www/html/heypapi/public/uploads/images/posters/54f8760ec1d98d2bb59a2a206bba6007.jpg"

and i don't understand media/cache/resolve/article

because the correct path are
http://0.0.0.0:9900/uploads/images/posters/54f8760ec1d98d2bb59a2a206bba6007.jpg

from liipimaginebundle.

dbu avatar dbu commented on June 12, 2024

the media/cache/resolve/article would be the route for the controller to trigger applying the filter that generates the image you want. but the error message says that it can't load the image from a path. you should debug why it can't open that image, if the root path is correct or if there are filesystem permission issues.

from liipimaginebundle.

CodingBDX avatar CodingBDX commented on June 12, 2024

okey i see, i don't install php-gd, it's work but on certain images...
it's work on 1920x865 167ko
but not on 1280x1280 330ko the image not in cache, and don't show...
https://zupimages.net/up/23/04/b45g.png

from liipimaginebundle.

dbu avatar dbu commented on June 12, 2024

maybe your memory settings are too low?

another option to avoid having to set up image handling is using a service like rokka.io where you can use an api and get a cdn with the images, and all image drivers installed and maintained as a service.

from liipimaginebundle.

CodingBDX avatar CodingBDX commented on June 12, 2024

i don't know, i see lot of peoples have same issue, i think my file liip.yaml are not correct there

liip_imagine: # valid drivers options include "gd" or "gmagick" or "imagick" driver: "gd" resolvers: default: web_path: web_root: "%kernel.project_dir%/public" cache_prefix: "uploads/images/posters"

all my images are in public/uploads/images/posters...it's good?? i use gd

from liipimaginebundle.

CodingBDX avatar CodingBDX commented on June 12, 2024

okey i find issu, it's gd...not work on jpg...i use now imagick that work perflectly!!

i have other problem, i would like use gallery on it...like flexbox or photoswiper

from liipimaginebundle.

dbu avatar dbu commented on June 12, 2024

good, glad you solved it.

for gallery functions, you need to look into frontend tools. the imagine bundle is only about scaling single images and does not provide functionalities for managing the images.

from liipimaginebundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.