Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When changing the Normal image style from flexslider_full to None (original image) the file path is wrong and no images show up.
File path ends up being:
http://domain/sites/default/files/styles/public/file.jpg
Instead of:
http://domain/sites/default/files/file.jpg
Comment | File | Size | Author |
---|---|---|---|
#4 | flexslider-original_image_path_fix-1971696-7434066.patch | 1.46 KB | piyuesh23 |
#2 | flexslider-original_image_path_fix-1971696-7434042.patch | 1.15 KB | piyuesh23 |
Comments
Comment #1
piyuesh23 CreditAttribution: piyuesh23 commentedComment #2
piyuesh23 CreditAttribution: piyuesh23 commentedThere is no condition set to handle the original image case. Attaching a patch for this fix.
Comment #3
piyuesh23 CreditAttribution: piyuesh23 commentedComment #4
piyuesh23 CreditAttribution: piyuesh23 commentedAdding another patch with couple of warnings fixed for the original image.
Comment #5
caktux CreditAttribution: caktux commentedWorks great, the patch just needs to be based in the module's folder and not Drupal's root.
Comment #6
ThaJoa CreditAttribution: ThaJoa commentedThe patch shows the images now but it still ignores the original image style, it keeps showing it as flexslider_full
Comment #7
minorOffense CreditAttribution: minorOffense commentedI've committed the code to dev. I think the image style selection is another issue in the queue.
Once I have that code fixed too, we can revisit this one to ensure it's all working.
As for the path to the image, that should be set by the file ID itself. I don't see anything in here which is forcing it to be in a certain path (but I could be wrong).
Comment #8
minorOffense CreditAttribution: minorOffense commented#2002146: Image Style selection is ignored