Hallo
I have to insert photographs on a Write document. By dragging the pictures from
a file manager or inserting them via "insert -> picture -> from file" the pictures
get a default size: picture width fits page width (A4 portrait).
I want to change this default. I need the pictures to be anchored as character, with
default width 7cm (so that I could get pictures displayed 2 by 2 on the page).
In the far past, OO3.0.0.9, this was done by redefining the graphics part of the
default style. This solution does not exist any more. The default style may be changed,
but the picture still enters with "full width".
How can I change the default size and anchor of pictures in a Write document once
and forever?
Thanks,
Mario
Change default size to insert pictures
Change default size to insert pictures
OOo 3.0.X on openSuse 11
- Hagar Delest
- Moderator
- Posts: 33400
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: Change default size to insert pictures
For the anchoring, see that topic and the workaround given in last post of the report: [Solved+Issue] Default style & settings for inserted picture.
For the size, I guess that it should be the same.
For the size, I guess that it should be the same.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
Re: Change default size to insert pictures
Hallo Hagar,
I was hoping that you would answer since you know all secrets of OO/LO.
changed by default *before* inserting. Otherwise one has to resize/reanchor the pictures one by one while writing the
document.
The workaround you indicate for anchor is a posteriori, but this is just what I want to avoid. I want the pictures to enter the
document by default with the proper size+anchor. Besides, I cannot ask the user to dig inside an odt file.
If what I want cannot be done, please tell me, and I'll file an "enhancement request". I would rather say it is a bug, since this
feature existed in 3.0.0.9, one could modify the default template. But that solution is gone since long ago.
Bye,/M.
I was hoping that you would answer since you know all secrets of OO/LO.
Unfortunately, this is not what I need. I have an user that inserts pictures all the time. The size and anchor should beFor the anchoring, see that topic and the workaround given in last post of the report: [Solved+Issue] Default style & settings for inserted picture.
For the size, I guess that it should be the same.
changed by default *before* inserting. Otherwise one has to resize/reanchor the pictures one by one while writing the
document.
The workaround you indicate for anchor is a posteriori, but this is just what I want to avoid. I want the pictures to enter the
document by default with the proper size+anchor. Besides, I cannot ask the user to dig inside an odt file.
If what I want cannot be done, please tell me, and I'll file an "enhancement request". I would rather say it is a bug, since this
feature existed in 3.0.0.9, one could modify the default template. But that solution is gone since long ago.
Bye,/M.
OOo 3.0.X on openSuse 11
- Hagar Delest
- Moderator
- Posts: 33400
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: Change default size to insert pictures
The trick is to tweak the default template. The only drawback is that the user will have to import it and set it as default before it works well but it has do be done once only.
For the pic size, haven't tried such setting, if you've troubles, just ask.
For the pic size, haven't tried such setting, if you've troubles, just ask.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
Re: Change default size to insert pictures
Unfortunately, this doesn't work any more. It did work 2-3 years ago in OOo 3.0.0.9. as follows:Hagar Delest wrote:The trick is to tweak the default template. The only drawback is that the user will have to import it and set it as default before it works well but it has do be done once only.
For the pic size, haven't tried such setting, if you've troubles, just ask.
I modified the graphics style so that anchor and picture size were as I need them. Then I saved the modified style
and marked it as default.
This arrangement stopped working somewhere between 3.0.0.9 and 3.3, I can't tell exactly when. As of today I have
modified the graphics style in the default template, but when I insert a picture OOo just ignores the new specification and
sets picture width to full-page.
Yours,
OOo 3.0.X on openSuse 11
- Hagar Delest
- Moderator
- Posts: 33400
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: Change default size to insert pictures
For the anchoring, I'm sure that tweaking the styles.xml file (not the content.xml) does work, I've done it with 3.3.0. For the picture width, I've tried but haven't figured out how to do it. But if it used to work, then I guess this is possible, I don't think there has been a change in ODF in this area.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
Re: Change default size to insert pictures
Take a different approach: create an empty frame with the desired width and the right anchoring, create an autotext to insert that frame, then insert the picture on that frame.
There are two types of people: those who believe that there are two types of people and those who do not.
openSUSE Leap with KDE Plasma / LibreOffice
openSUSE Leap with KDE Plasma / LibreOffice
Re: Change default size to insert pictures
Hi RGB
Yes, I tried this and it works fine for ONE picture. Sometimes I have to insert all pictures inside a certain directory, say
100 pictures. If the default anchor and size were as I want, I could drag all 100 pictures in one move, and they would find
their place in the document two by two, small size, all the way to the end. To do the same with autotext, I have to enter first
the autotext frame, then the picture, one by one 100 times. I want to avoid this. Is there a smarter way to use the autotext
alternative?
What is most frustrating is that this function used to work about 2-3 years ago.
Yes, I tried this and it works fine for ONE picture. Sometimes I have to insert all pictures inside a certain directory, say
100 pictures. If the default anchor and size were as I want, I could drag all 100 pictures in one move, and they would find
their place in the document two by two, small size, all the way to the end. To do the same with autotext, I have to enter first
the autotext frame, then the picture, one by one 100 times. I want to avoid this. Is there a smarter way to use the autotext
alternative?
What is most frustrating is that this function used to work about 2-3 years ago.
OOo 3.0.X on openSuse 11
Re: Change default size to insert pictures
I don't remember that a style could ever specify the size of an image. You can restrict the width of an image by inserting it in a frame or table.
You can change the default anchor for the "Graphics" style and that will apply to images inserted from there on. With OOo 3.3, it's slightly more difficult to set the anchor property; the easiest way is to load the style from a document that already has the modified style. See this thread for a document you can use: http://user.services.openoffice.org/en/ ... =7&t=45697
Dragging images from a file manager works partially, but may not be very useful because OOo inserts the images in a different order than the file manager shows them and they are all inserted on top of each other.
You may have better luck doing what you describe using OOo's database access, but I have no idea how to do that, or even whether it could be practical.
You can change the default anchor for the "Graphics" style and that will apply to images inserted from there on. With OOo 3.3, it's slightly more difficult to set the anchor property; the easiest way is to load the style from a document that already has the modified style. See this thread for a document you can use: http://user.services.openoffice.org/en/ ... =7&t=45697
Dragging images from a file manager works partially, but may not be very useful because OOo inserts the images in a different order than the file manager shows them and they are all inserted on top of each other.
You may have better luck doing what you describe using OOo's database access, but I have no idea how to do that, or even whether it could be practical.
AOO4/LO5 • Linux • Fedora 23