We want to upload alot of images on alot of pages, is there a way to default them all to be the same size, with the same border and aligned left?
Its taking us along time to make the images look consistant across all our pages.
Thanks!
Hi @Jodie Squires and welcome to the community.
Unfortunately, the answer is no.
Images seem to default to the central position in paragraphs and the left position in lists (when you use soft-return). There might be an app that can do that (a theme app like Karma or Aura).
As for the size and frame, this is typically achieved during the image creating phase in you image/screenshot editor where you can create presets/scripts etc.
Ok thanks anyway!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jodie,
We have a similar problem. In any case, I was wondering whether it is possible to preset certain defaults to take effect each time an image is inserted.
I have now helped myself by downloading a free storage format editor (which you can use anyway) and then going through the source code with search and replace to quickly edit at least all the images on a page.
Your inserted image will look something like this in the source text:
<ac:image ac:align=“center” ac:layout=“center” ac:original-height=“349” ac:original-width=“842” ac:custom-width=“true” ac:alt=“image.png” ac:width=“250”>
<ri:attachment ri:filename=“image.png” ri:version-at-save=“1” />
</ac:image>
You have to replace this part
<ac:image ac:align=“center” ac:layout="center”
with this
<ac:image ac:align=“left” ac:layout="align-start”
and insert a line for the border at the end before closing image tag:
e.g.:
<ac:adf-mark key=“border” size=“1” color=“#172b4d” />
Then it should look like this afterwards:
<ac:image ac:align=“left” ac:layout=“align-start” ac:original-height=“349” ac:original-width=“842” ac:custom-width=“true” ac:alt=“image.png” ac:width=“250”>
<ri:attachment ri:filename=“image.png” ri:version-at-save=“1” />
<ac:adf-mark key=“border” size=“1” color=“#172b4d” />
</ac:image>
When searching and replacing, you should be familiar with regex and test your input beforehand.
I can't give you any safe expressions for the search/replace here, as I don't know the new editor that well yet.
Once you have these, you could take the next step and perform mass processing via REST API.
Best, Volker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.