Closed (fixed)
Project:
Picture
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
20 Jun 2013 at 16:11 UTC
Updated:
18 Jun 2014 at 14:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
barber75 commentedhey guys,
Just wandered if anyone knows of why this is happening or is this happening to anyone else?
Thanks,
Craig
Comment #2
barber75 commentedHi everyone,
Still no one has any information...I'm really stumped as to why the picture module isn't injecting my images.
When in WYSIWYG, i choose my photo, select my picture image format, which is all set up with breakpoints, image styles. But, when I view the HTML, the data-picture tag is being applied, but with no images being being replaced. Could I be missing something here?
Thanks,
Craig
Comment #3
attiks commentedCan you check the text format settings, there's an option to enable inline pictures.
Comment #4
R2-D8 commentedSame problem here: Everything's ok, but inline images don't get further than the data-picture-group tag being added.
Im my case drupal's private file system seems to cause the trouble.
With public files ('sites/default/files/...') everything's working,
but private file paths ('system/files/...') are breaking the function 'picture_image_uri($src)' in 'picture.module'.
At the moment I'm unclear about possible approaches. We all know the ongoing problems about drupal's private file system. Maybe I'm just switching back to public file system, protecting files manually with htaccess-directives.
Comment #5
R2-D8 commentedI took a deeper look and created a first patch for this.
Just a little extension to the function 'picture_image_uri($src)' in 'picture.module'.
Indeed it's just focused on managed/private images; i expect there is potential to merge this with the exisiting parts for public images.
Any ideas are welcome.
Comment #6
Cas commentedThis patch, works well for me. Wysiwyg + CKeditor inline images fetched from the server folder with IMCE now (finally) produces an Picture module generated adaptive image element!
Many thanks indeed, Cas
Comment #7
jenscbc commentedEDIT: I finally got responsive images to work in Omega 3 by manually applying the patch #5 to Picture 7.x-1.2+6-dev and use Media 7.x-2.0-alpha3+36-dev + Breakpoints 7.x-1.1
Is there a reason why patch #5 is not committed to the dev so others could get it working? Would be great to see it working out of the box.
Thanks for a great module and fine patch!
-------------------------------------------------------------------------------
I'm not able to apply this patch on Picture 7.x-1.2+6-dev. I get error "fatal: Not a valid object name 3d8a2c7".
Sorry I'm not strong in Git. Is this error because I try to patch the wrong version of the dev? Is there a way around this, so I can test the #5 patch?
I use Wysiwyg + CKEditor (3.6.x)+ Media (2) + private files.
I have made a content type where I can test both inline and a picture field. The same picture displayed as a field is responsive but the inline not.
I'm really stuck. Any help is much appreciated!
/Jens
The source code of the inline image only has a image tag with correct image path and correct data-picture-group
where the source code of the image as field has the full code with
span data-picture=""
+ span list of all image styles
+ noscript
+img tag pointing to the image styles
Comment #8
hefox commentedRemember to put an issue as needs review when there's a patch :)
Comment #9
Joram commentedI'm having similar problem with CKeditor & IMCE. I can upload the image and assign the picture group. The image is rendered on my desktop browser and resizing the window on my desktop will switch to the correct breakpoint sizes and the correct image.
However, when viewing the page on my android Samsung Galaxy Ace or Samsung Tablet, the image is not rendered, instead i see one of those 'missing images' icons.
The problem only occurs when using inline images. Using content type field 'image' with picture format applied works perfectly. Here's the HTML difference between both:
HTML from using CKeditor with IMCE and Picture
HTML from content type field 'image' with picture format applied
Comment #10
jelle_sPatch committed to the latest dev.
@Joram: Please try version 2 of the picture module. If the same problem persists, please create a new issue as I'm not convinced it's part of the same problem.
Comment #11
jelle_s