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?

CommentFileSizeAuthor
#7 edit-html1.png38.96 KBquicksketch
#7 edit-html2.png93.25 KBquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Could you post the HTML of your post (from the edit form)? I'll need some way of reproducing this problem.

2id’s picture

Name of my node is Super zelene spravice. Images are just inserted in wysiwyg editor without resizing. Here are img tags for those images:

<a href="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" rel="lightbox"><img alt="" src="http://localhost/drupal-6.14/sites/default/files/resize/Mladen/super-zelene-spravice-550x386.jpg" title="" height="403" width="550" /></a></p>

<a href="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" rel="lightbox"><img alt="" src="http://localhost/drupal-6.14/sites/default/files/resize/Mladen/super-zelene-spravice-540x405.jpg" title="" height="386" width="550" /></a></p>

<a href="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" rel="lightbox"><img alt="" src="http://localhost/drupal-6.14/sites/default/files/resize/Mladen/super-zelene-spravice-540x341.jpg" title="" height="405" width="540" /></a>

<a href="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" rel="lightbox"><img alt="" src="http://localhost/drupal-6.14/sites/default/files/resize/Mladen/super-zelene-spravice-540x720.jpg" title="" height="341" width="540" /></a>

<a href="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" rel="lightbox"><img alt="" src="http://localhost/drupal-6.14/sites/default/files/resize/Mladen/super-zelene-spravice-540x405.jpg" title="" height="720" width="540" /></a>

<a href="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" rel="lightbox"><img alt="" src="http://localhost/drupal-6.14/sites/default/files/resize/Mladen/super-zelene-spravice-550x357.jpg" title="" height="405" width="540" /></a>

<a href="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" rel="lightbox"><img alt="" src="http://localhost/drupal-6.14/sites/default/files/resize/Mladen/super-zelene-spravice-540x278.jpg" title="" height="357" width="550" /></a>

<a href="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" rel="lightbox"><img alt="" src="http://localhost/drupal-6.14/sites/default/files/resize/Mladen/super-zelene-spravice-540x337.jpg" title="" height="278" width="540" /></a>

<a href="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" rel="lightbox"><img alt="" src="http://localhost/drupal-6.14/sites/default/files/resize/Mladen/super-zelene-spravice-540x360.jpg" title="" height="337" width="540" /></a>

<a href="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" rel="lightbox"><img alt="" src="http://localhost/drupal-6.14/sites/default/files/resize/Mladen/super-zelene-spravice-540x405.jpg" title="" height="360" width="540" /></a>

<img alt="" src="http://localhost/drupal-6.14/sites/default/files/Mladen/super-zelene-spravice.jpg" title="" height="405" width="540" /></p> 
quicksketch’s picture

Sorry, 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.

2id’s picture

When 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.

quicksketch’s picture

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

Okay, 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.

2id’s picture

Images 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.

quicksketch’s picture

FileSize
93.25 KB
38.96 KB

Images posted above should all be different images,

You'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.

quicksketch’s picture

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?

For 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.

2id’s picture

The problem is fixed with the latest updates.

quicksketch’s picture

Status: Active » Fixed

Excellent, 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. :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

2id’s picture

Status: Active » Closed (fixed)
2id’s picture

Version: 6.x-1.6 » 6.x-1.9
Status: Closed (fixed) » Active

The same issue happens all over again when i updated to newest recommended fileField and ImageField modules.

2id’s picture

The problems are gone after i have reinstalled those modules.