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 i insert images in wysiwyg editor using automatic insert style and don't resize them(i'm using image resize filter), everithing looks fine when i preview the content, but when i save the content all the images appears as the first one inserted but with the resolution of the image that should have been there in the first place. When i checked the resize directory on the server all images have the same name as the node which was created when adding images, name is followed by the resolution of the image that should have been there.
Does anyone know why is this occuring?
Comment | File | Size | Author |
---|---|---|---|
#7 | edit-html1.png | 38.96 KB | quicksketch |
#7 | edit-html2.png | 93.25 KB | quicksketch |
Comments
Comment #1
quicksketchCould you post the HTML of your post (from the edit form)? I'll need some way of reproducing this problem.
Comment #2
2id CreditAttribution: 2id commentedName of my node is Super zelene spravice. Images are just inserted in wysiwyg editor without resizing. Here are img tags for those images:
Comment #3
quicksketchSorry, could you provide the source *from the edit page*? From your description, this looks like the HTML when you view the node, not when you're editing it.
Comment #4
2id CreditAttribution: 2id commentedWhen i edit my node and click disable rich text below ck editor it gives me html code of my post, everithing else besides those img tags posted above is just text and few p and br tags.
Comment #5
quicksketchOkay, I think I'm following you now. You're saying that if you insert the same image multiple times, it uses the same resolution for all of them. I thought you were saying that the images were different but were all being replaced with the same src.
Comment #6
2id CreditAttribution: 2id commentedImages posted above should all be different images, if i leave them at their native resolutions after inserting them in the editor and without resizing them when i preview the post everithing looks fine, but when i save that post and then go to view it, only first image that was inserted appears on the post in place of those other images that were inserted, so every picture on the post is the same as the fitst one inserted when node was created and has the widht and height of the image that should be in that place in the text.
Try to insert few different images in the editor without resizing them, just insert one after another, then save your post and go to view it.
Does your images appears properly?
I'm using html insert for inserting images, ck editor for editing text, and drupal 6.16.
These are filenames in resize folder for inserted images:
super-zelene-spravice-540x278.jpg
super-zelene-spravice-540x337.jpg
super-zelene-spravice-540x341.jpg
super-zelene-spravice-540x360.jpg
super-zelene-spravice-540x405.jpg
super-zelene-spravice-540x720.jpg
super-zelene-spravice-550x357.jpg
super-zelene-spravice-550x386.jpg
These are all same images as the first one inserted and not different images which i inserted, and these resolutinos which follow their names are original resolutions of all the different images that were inserted. So same images with different resolution which is shown in their name.
I have checked again HTML code using
<?php print dsm($node) ?>
function and updated those image tags in the post above.Comment #7
quicksketchYou're killing me here. The HTML you've posted is what's shown on VIEW. I want you to tell me what HTML is entered when you do your editing. See screenshots of what I want. Knowing what's being output on view is not very useful.
Comment #8
quicksketchFor the record, I'm not able able to reproduce this problem when using multiple images inserted and resizing all of them (this was a problem in Image Resize Filter 1.2 I think). However there IS a problem with inserting the same image multiple times, then the resolution of these images get all messed up, though I don't think that's what this issue is talking about.
Comment #9
2id CreditAttribution: 2id commentedThe problem is fixed with the latest updates.
Comment #10
quicksketchExcellent, thank you for the followup. Sorry I couldn't ever quite figure out what caused it though. All's well that ends well I suppose. :-)
Comment #12
2id CreditAttribution: 2id commentedComment #13
2id CreditAttribution: 2id commentedThe same issue happens all over again when i updated to newest recommended fileField and ImageField modules.
Comment #14
2id CreditAttribution: 2id commentedThe problems are gone after i have reinstalled those modules.