Rebuild HTML and Rebake doesn't work for some images!


(Pradeep Kumar) #1

Hey, guys. I was experimenting with the ‘max-width’ and ‘max-height’ settings and after a few months, I decided to settle down with ‘max-width’ as 690px.

The images are not automatically changing to 690px, they are still stuck with 610px (old width). I did the “Rebuild HTML” option and I also rebaked, but it only works for the HTML images, like this:

<img src="/uploads/default/original/2X/9/9b4a468659cc8fe1ae50c9ab04b3a2522f0a240b.png" alt="Google Chrome Find Server Apache Nginx" width="690" height="483">

All the other images having this format below didn’t respond:

![The 1000 USD Blog|610x320](upload://2MpnoS2Zph5eaVuavNxRwOQjZ4p.png)

Any idea how I can fix this? Thank you so much.


(Gerhard Schlager) #2

Rebaking doesn’t help in this case because you are forcing a width of 610px.
You need to edit those posts and either remove the size restrictions or change them to match your desired with.

Take a look at Replace a string in all posts if you need to replace the width in lots of posts.
rake posts:remap["|610x","|690x"] should work for you.