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

image in subdir of images causes error #22

Open
cah-danmonroe opened this issue Apr 10, 2019 · 3 comments
Open

image in subdir of images causes error #22

cah-danmonroe opened this issue Apr 10, 2019 · 3 comments

Comments

@cah-danmonroe
Copy link

If I put an image into a subdirectory of /public/images/ then at startup, I get an error:
When I put the image in /public/images, it's fine.
`
ERROR Summary:

  • broccoliBuilderErrorStack: Error: Input file contains unsupported image format
  • code: [undefined]
  • codeFrame: Input file contains unsupported image format
  • errorMessage: Input file contains unsupported image format
    at ImageResizer
    -- created here: --
    at ImageResizer.Plugin (/Users/daniel.monroe/projects/geoquest/blog-danmonroe/node_modules/broccoli-plugin/index.js:7:31)
    at new CachingWriter (/Users/daniel.monroe/projects/geoquest/blog-danmonroe/node_modules/broccoli-caching-writer/index.js:18:10)
    at new ImageResizer (/Users/daniel.monroe/projects/geoquest/blog-danmonroe/node_modules/ember-responsive-image/broccoli-image-writer.js:16:5)
    at Class.resizeImages (/Users/daniel.monroe/projects/geoquest/blog-danmonroe/node_modules/ember-responsive-image/index.js:170:12)
    at addonOptions.forEach (/Users/daniel.monroe/projects/geoquest/blog-danmonroe/node_modules/ember-responsive-image/index.js:192:30)
    at Array.forEach ()
    at Class.postprocessTree (/Users/daniel.monroe/projects/geoquest/blog-danmonroe/node_modules/ember-responsive-image/index.js:191:25)
    at projectOrAddon.addons.reduce (/Users/daniel.monroe/projects/geoquest/blog-danmonroe/node_modules/ember-cli/lib/utilities/addon-process-tree.js:6:25)
    at Array.reduce ()
    at addonProcessTree (/Users/daniel.monroe/projects/geoquest/blog-danmonroe/node_modules/ember-cli/lib/utilities/addon-process-tree.js:4:32)
    -- (end) --
  • errorType: Build Error
    `
@mansona
Copy link
Member

mansona commented Apr 10, 2019

@cah-danmonroe I assume you're using the casper template? I am pretty sure that is the only template that is using responsive images right now so if you are I can transfer this issue over there 👍

@mansona mansona transferred this issue from empress/empress-blog Apr 24, 2019
@elwayman02
Copy link
Contributor

This issue is still occurring. I've created a reproduction that shows it broken even in the default empress-blog demo app (which uses the Casper template).

empress/empress-blog@master...elwayman02:nested-image

It's important to figure out a fix for this, because any long-lived blog of decent scale will eventually have hundreds of articles, which can translate to hundreds of distinct header images. Users need to be able to organize their images rather than just dumping them into one gigantic flat images/ directory.

@elwayman02
Copy link
Contributor

@mansona do you have any idea what is going on with this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants