I made a mistake when importing Frame files and left the "Preserve Image Size" option checked. This made all the images come in imported with "Style= " settings and now they're all distorted. The easy solution is to get rid of the "style= ..." part of the img expression. I can also just re-add the image, and that's fine except that there are thousands of images, and I've already done a lot of other reformatting, so I don't want to re-import.
Thus, I'm wondering/hoping that their may be a "Find and Replace" way to replace something like this:
<img src="myfilename.png" style="width: 476.1591px; height: 157.9191px;" class="LeftIs5px" />
with this:
<img src="myfilename.png"/>
Find and replace "Style=* expression with nothing
-
joeslevinevm2
- Jr. Propeller Head
- Posts: 6
- Joined: Thu Mar 24, 2016 10:22 am
-
GregStenhouse
- Sr. Propeller Head
- Posts: 330
- Joined: Tue May 13, 2008 3:27 pm
- Location: Christchurch, New Zealand
Re: Find and replace "Style=* expression with nothing
You'll want to do something like this (using regular expressions) - you could add the class at the end of the find to remove that as well, however I would have thought leaving it there wouldn't hurt and might be useful down the track.
Find:
(<img src=".*) style=".*"
Replace with:
\1
The usual advice applies about backing up your project, testing with a few before clicking Replace All etc.
Find:
(<img src=".*) style=".*"
Replace with:
\1
The usual advice applies about backing up your project, testing with a few before clicking Replace All etc.
-
joeslevinevm2
- Jr. Propeller Head
- Posts: 6
- Joined: Thu Mar 24, 2016 10:22 am
Re: Find and replace "Style=* expression with nothing
You are my hero. I bow at your feet. AWESOME!!!