LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2014, 03:10 AM   #1
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 18.04
Posts: 89

Rep: Reputation: 4
jpeg pictures in Libreoffice 4.2.3.3 writer not very clear


Hello everybody
I use libreoffice writer for my records: I scan my notes and then save them in jpeg format after processing them with gimp.
So, every record consists of text and inserted jpeg pictures.
After installing ubuntu 14.04 I have libreoffice 4.2.3. Yet the pictures in the records appear "truncated" , unclear and of low quality .With the version of libreoffice in ubuntu 12.04, there was no problem. Not only the new ones (that could be an issue with the new gimp version) but also the older ones that were processed with the older gimp version
Also, it is not a matter of stretching of the pictures since the dimensions are identical with which they used to be
When I open a picture with another application e.g image viewer and stretch it to the same dimensions, it is much better than within writer.
So, it is clear that it has to due with libreoffice . I tried the settings but couldnt find anything
Any ideas??

Last edited by joham34; 05-05-2014 at 02:21 AM. Reason: wrong meaning of a word I used
 
Old 05-03-2014, 05:12 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I cannot replicate your problem. I have attached a screenshot of a photo file being attached to a Libreoffice Document (in fact your post). As you can see, there are no problems of the sort you describe. Can you explain the method that you used to insert the image into your document. I simply selected Image from the Insert menu and then filled in the From File... item. It came out perfectly.
jdk
Attached Thumbnails
Click image for larger version

Name:	libre-photo.jpg
Views:	116
Size:	162.0 KB
ID:	15409  

Last edited by jdkaye; 05-03-2014 at 05:15 AM.
 
Old 05-03-2014, 12:17 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
HOW are you saving them in gimp?
in the current 2.8.10
the "save as" saves the image as a xcf gimp format image
yo have to use "export" and choose the format
BUT REMEMBER that jpg is a "lousy" format in that is removes DATA permanently from the image in the compression

a 60% resaved as a 60% only has 36% of the original information in the image

as to libreoffice
it uses the dpi setting in the metadata of the jpg
you likely would need to just resize the image in the document


Libreoffice 4 is VERY different than Libreoffice3
 
Old 05-04-2014, 03:16 AM   #4
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 18.04
Posts: 89

Original Poster
Rep: Reputation: 4
Thanks for your reply

Quote:
Originally Posted by jdkaye View Post
I cannot replicate your problem. I have attached a screenshot of a photo file being attached to a Libreoffice Document (in fact your post). As you can see, there are no problems of the sort you describe. Can you explain the method that you used to insert the image into your document. I simply selected Image from the Insert menu and then filled in the From File... item. It came out perfectly.
jdk
I scan my records and then save them in jpeg with gimp and then incorporate them in writer. Below are 2 images of a part of a record opened with the two libreoffice versions (used printscreen and zoomed them twice). The archive (document) is the same for both cases (is saved on a flash) and is opened in the first case with the old libreoffice and in the second with the new. Exactly the same hardware is used, my pc is dual boot and I have both ubuntu 12.04 (used forthe first image with old libreoffice ) and ubuntu 14.04 (the second with the new one)
Attached Thumbnails
Click image for larger version

Name:	3.5.7.2_cut.png
Views:	99
Size:	129.3 KB
ID:	15416   Click image for larger version

Name:	4.2.3.3_cut.png
Views:	93
Size:	127.3 KB
ID:	15417  
 
Old 05-04-2014, 03:23 AM   #5
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 18.04
Posts: 89

Original Poster
Rep: Reputation: 4
Thanks for your reply

Quote:
Originally Posted by John VV View Post
HOW are you saving them in gimp?
in the current 2.8.10
the "save as" saves the image as a xcf gimp format image
yo have to use "export" and choose the format
BUT REMEMBER that jpg is a "lousy" format in that is removes DATA permanently from the image in the compression

a 60% resaved as a 60% only has 36% of the original information in the image

as to libreoffice
it uses the dpi setting in the metadata of the jpg
you likely would need to just resize the image in the document


Libreoffice 4 is VERY different than Libreoffice3
Yes, of course I use export instead of save as with the new gimp. The problem has nothing to do with gimp though since also the scanned images (before new gimp) also appear truncated and also the new gimp-processed images appear normal within old libreoffice
Of course Jpeg is lossy but have not had this problem since about 2009 that I use it
It has definitely to do with libreoffice. Please see the thumbnails attached (in my answer to jdkaye) to see the difference

Also the images have exactly the same dimension on my screen (measured by hand with a ruler) so I dont thing it has to do with resizing. The images appearing reminds me of lower resolution ones.
Do you know if there is a picture resolution setting in L.O??

Last edited by joham34; 05-04-2014 at 03:28 AM. Reason: forgot something
 
Old 05-04-2014, 05:19 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by joham34 View Post
I scan my records and then save them in jpeg with gimp and then incorporate them in writer. Below are 2 images of a part of a record opened with the two libreoffice versions (used printscreen and zoomed them twice). The archive (document) is the same for both cases (is saved on a flash) and is opened in the first case with the old libreoffice and in the second with the new. Exactly the same hardware is used, my pc is dual boot and I have both ubuntu 12.04 (used forthe first image with old libreoffice ) and ubuntu 14.04 (the second with the new one)
What I'd need to see is the jpeg file that you're trying to insert into a in a libreoffice document. The two images you attached seem pretty much the same and are just fragments of your notes (written in Greek). I don't know what you're trying to do and what this has to do with Libreoffice.

jdk

Last edited by jdkaye; 05-05-2014 at 01:49 PM.
 
Old 05-04-2014, 11:24 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
Quote:
Also the images have exactly the same dimension on my screen (measured by hand with a ruler
odd?
truncated would mean that one would be LARGER than the other
and that not all the image of the larger one would be displayed
if not all the image is being displayed then it needs to be resized in libreoffice
So that it will fit into the space provided in the document
that is the " Dots Per Inch " the resolution needs

and LL3 did things differently than the current LL4
 
Old 05-05-2014, 02:19 AM   #8
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 18.04
Posts: 89

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by John VV View Post
odd?
truncated would mean that one would be LARGER than the other
and that not all the image of the larger one would be displayed
if not all the image is being displayed then it needs to be resized in libreoffice
So that it will fit into the space provided in the document
that is the " Dots Per Inch " the resolution needs

and LL3 did things differently than the current LL4
Yes, you are right, truncated is a wrong word for what I try to describe . I you notice the two thumbnails on my previous message, you can see that the lines of the hand written letters are definitely smoother and clearer on the first one (the one with the old L.O)
Size is exactly the same on both images
Unfortunately I cannot attach the whole record, it is too large
 
Old 05-05-2014, 02:29 AM   #9
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 18.04
Posts: 89

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by jdkaye View Post
What I'd need to see is the jpeg file that you're trying to into a in a libreoffice document. The two images you attached seem pretty much the same and are just fragments of your notes (written in Greek). I don't know what you're trying to do and what this has to do with Libreoffice.

jdk
THe images are quite different acutally. If you notice the lines of the hand written letters on the first they are much smoother and clearer. I cannot attach the whole jpeg image or even the record because they are both quite large and the limit is 256 kb.
What is important is that both thumbnails are taken on exactly the same machine and same resolution etc but still they appear different depending on which L.O opens them
 
Old 05-05-2014, 02:46 AM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
As I said, I'd need to see the original jpeg files that you're trying to incorporate into a Libreoffice document. As I showed you above, I don't have any problem either with resolution or autofitting the photos onto a page using Libreoffice.
jdk
 
Old 05-05-2014, 11:13 AM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
Quote:
definitely smoother and clearer on the first one (the one with the old L.O)
Size is exactly the same on both images
so it is the " antialiasing " setting

that should be able to be set the the preferences in LO4

also the JPG "noise" artifacts are very noticeable and very annoying on images of text
those "blocks" just jump right out and scream " hear i am"

Last edited by John VV; 05-05-2014 at 11:15 AM.
 
Old 05-06-2014, 02:31 PM   #12
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 18.04
Posts: 89

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by John VV View Post
so it is the " antialiasing " setting

that should be able to be set the the preferences in LO4

also the JPG "noise" artifacts are very noticeable and very annoying on images of text
those "blocks" just jump right out and scream " hear i am"
Antialiasing setting would be the most reasonable think to solve this issue but unfortunately did not work. When I tried it, it didnt change anyting -at least anything I could notice.
I agree about the Jpeg noice but the fact here is that the same jpeg arhive opened in the old LO looks better than that in the new one.So I dont think this is a matter of jpeg noise, rather a LO one
Anyway, it is not so anoying, Ill survive
Thank you for your effort to help

Last edited by joham34; 05-06-2014 at 02:33 PM. Reason: I jforgot something
 
Old 05-06-2014, 06:37 PM   #13
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
The second (bad) image is exactly what I get when I compress a JPG too aggressively or reduce the color space.

But you say the JPG files are identical, they only look different in the different LO versions?

LO's decompressing algorithm might be flawed, but I assume they would use some standard library for that. Which would not normally change from one version to the next. But it might have changed this time.

Are you linking to the image files, or do you include them? If you include them, does the file size differ?

jlinkels
 
Old 05-07-2014, 09:17 AM   #14
joham34
Member
 
Registered: Oct 2009
Location: Greece
Distribution: ubuntu 18.04
Posts: 89

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by jlinkels View Post
The second (bad) image is exactly what I get when I compress a JPG too aggressively or reduce the color space.

But you say the JPG files are identical, they only look different in the different LO versions?

LO's decompressing algorithm might be flawed, but I assume they would use some standard library for that. Which would not normally change from one version to the next. But it might have changed this time.

Are you linking to the image files, or do you include them? If you include them, does the file size differ?

jlinkels
Thanks for your answer.
I include (paste, not link) jpeg images in LO docs. And the loss of quality affects all documents jpegs, not only the ones since ubuntu 14.04 (that came with LO 4.2.3) So presumably they have changed some library or something like that
 
Old 05-07-2014, 05:50 PM   #15
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
When you create two documents, one in old LO, one in the most recent version of LO.
In each document you past the same JPG picture. The picture should be a reasonable size, so the size is significant as compared to the overhead, 200k or so.

When you save the two documents, is there a significant difference in size of the two?

You see, the JPG image in the old version resembles an image with a compression quality of ~80. While the image in the new version seems to be compressed with quality=30.

Now LO is not supposed to compress or change the quality. But if you compare the sizes of the two version you might see a hint in a direction.

jlinkels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install only Writer from Libreoffice package"libreoffice-4.0.3-i486-1alien.txz just.srad Slackware 10 05-30-2013 02:37 PM
[SOLVED] LibreOffice Writer Question panther82 Linux - Newbie 3 08-05-2012 09:21 AM
LXer: LibreOffice Tips: Inserting QurĂ¢??an text in LibreOffice Writer LXer Syndicated Linux News 0 04-16-2012 02:50 PM
LibreOffice Writer johnkelly.110 Linux - Desktop 5 10-26-2011 09:16 AM
pictures .pmg to jpeg? carlosinfl Linux - Software 9 08-19-2004 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration