LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2017, 10:00 AM   #1
jaydeesank
LQ Newbie
 
Registered: Jan 2017
Posts: 8

Rep: Reputation: Disabled
How to increase a jpegfile to 20kbs


I have been told that my passport photo is too small. How do I increase it to 20 kb plus?
 
Old 01-18-2017, 11:25 AM   #2
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 387

Rep: Reputation: 108Reputation: 108
>>>I have been told that my passport photo is too small. How do I increase it to 20 kb plus?

You can't just create photo data that isn't there. You will need to take a new larger photo.

You didn't specify where you are from but I assume American. The State dept has a minimum size of 600X600 pixels for a cropped photo of the face. I don't know why you are talking about file size.

If you are trying to take your own passport photo you may need a better camera.
 
Old 01-18-2017, 11:36 AM   #3
jaydeesank
LQ Newbie
 
Registered: Jan 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks forgetting back to me tofino. I am in the UK. My photo is 23 kbs but our people need a 50kbs plus image.
 
Old 01-18-2017, 11:42 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,337

Rep: Reputation: 6037Reputation: 6037Reputation: 6037Reputation: 6037Reputation: 6037Reputation: 6037Reputation: 6037Reputation: 6037Reputation: 6037Reputation: 6037Reputation: 6037
Quote:
Originally Posted by jaydeesank View Post
Thanks forgetting back to me tofino. I am in the UK. My photo is 23 kbs but our people need a 50kbs plus image.
Ok...so as said, go get a larger picture taken.
 
1 members found this post helpful.
Old 01-18-2017, 11:54 AM   #5
jaydeesank
LQ Newbie
 
Registered: Jan 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
I will but I have been told that it is possible to increase the size. I shall do some research in slower time in case this comes up again. Thank you.
 
Old 01-18-2017, 11:56 AM   #6
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,075

Rep: Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725
You can increase file size of a JPEG by doing some conversion with Image Magick.

I obviously don't have your picture, so I'll use a file I have lying around. The file sizes will be different than what you see on your system.

First, convert it up to an uncompressed format:

Code:
$ convert pic.jpg pic.tiff
It's definitely bigger:

Code:
$ ls -l
... 88811    pic.jpg
... 6229756  pic.tiff
Now re-compress, with less jpeg compression:

Code:
$ convert pic.tiff -quality 90 newpic.jpg
$ ls -l
... 182690   newpic.jpg
... 88811    pic.jpg
... 6229756  pic.tiff
You'll have to play around with the -quality option; the values are from 0 to 100, with 100 being LESS compression (bigger file size) and 0 being MORE compression (smaller file size).

All in all though, taking a new picture is probably the "right" answer.

Last edited by notKlaatu; 01-18-2017 at 11:59 AM. Reason: explained -quality setting
 
1 members found this post helpful.
Old 01-18-2017, 12:26 PM   #7
jaydeesank
LQ Newbie
 
Registered: Jan 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thumbs up

Thank you notKlaatu. I shall have a look at Magicked - I presume I can download it - I am new to this! I will use my camera in the meantime for a new photo. I had forgotten that I still have one!
 
Old 01-18-2017, 02:14 PM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,535

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I ought probably to report this to Her Majesty" Government.
Just take a proper photo -- don't give anyone an excuse to call you a terrorist.
 
Old 01-18-2017, 03:00 PM   #9
jaydeesank
LQ Newbie
 
Registered: Jan 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Who do you think you are? If you are going to be rude you should first learn the rules of the apostrophe indicating possession.
 
Old 01-18-2017, 03:05 PM   #10
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,444
Blog Entries: 13

Rep: Reputation: 3762Reputation: 3762Reputation: 3762Reputation: 3762Reputation: 3762Reputation: 3762Reputation: 3762Reputation: 3762Reputation: 3762Reputation: 3762Reputation: 3762
Quote:
Originally Posted by 273 View Post
I ought probably to report this to Her Majesty" Government.
Just take a proper photo -- don't give anyone an excuse to call you a terrorist.
Hi 273, perhaps a little less sarcasm and more help.
Quote:
Originally Posted by jaydeesank View Post
Who do you think you are? If you are going to be rude you should first learn the rules of the apostrophe indicating possession.
jaydeesank, the report button is the better choice here versus escalation within the thread.
 
1 members found this post helpful.
Old 01-18-2017, 04:05 PM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,535

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by rtmistler View Post
Hi 273, perhaps a little less sarcasm and more help.jaydeesank, the report button is the better choice here versus escalation within the thread.
I missed the apostrophe because I was typing on my phone. I meant it completely, I am not being sarcastic here.
The standards are there so that a government agency can use the photograph for the purposes of border control and law enforcement. To deliberately produce an image with lower resolution is not a good idea.
To attempt to mislead a government agency is not something to be flippant about. Have a government-approved photograph taken in a government-approved place in a government-approved manner. Otherwise it's illegal.

I'm not fan of government but, please, this is serious.
 
Old 01-18-2017, 04:47 PM   #12
jaydeesank
LQ Newbie
 
Registered: Jan 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
I am not sure I wish to continue as a member of this forum. I ask for honest help and then have to face this completely unfounded accusation of trying to mislead a government agency. In fact, I followed the instructions to apply on line and when I tried to upload the photo I was asked to increase it's size. I know that it is technically possible to do this but as an inexperienced computer person using a new OS I turned to the forum for help. I am amazed that people not known to me should jump to conclusions like this and then decide they have the right to lecture me. With members like this I don't think I want to have anything more to do with it. I reported the earlier uncalled for rant. I shall now report the complete exchange.
 
1 members found this post helpful.
Old 01-18-2017, 07:30 PM   #13
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 387

Rep: Reputation: 108Reputation: 108
>>>I will but I have been told that it is possible to increase the size

>>>You can increase file size of a JPEG by doing some conversion with Image Magick.

You can increase the file size but you aren't adding any detail that was lost in the original compression. You can't replace what is already gone. Converting from jpeg to uncompressed tiff doesn't add back any image detail that was already lost.

>>>Now re-compress, with less jpeg compression:

This is pointless.

If you had an uncompressed RAW or TIFF original from a DSLR you could choose an initial compression to get the right file size.

It is best to take a new uncompressed original picture and start from there.
 
2 members found this post helpful.
Old 01-18-2017, 07:54 PM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,465

Rep: Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606
as a photographer !!!

we informed you as to WHAT TO DO

take a better picture that is LARGER!!!!

and will likely require your " RIGHT EAR" in the image

go to any local photographer and get a passport pic taken

there are requirements that MUST be met for some countries
 
1 members found this post helpful.
Old 01-18-2017, 08:17 PM   #15
designator
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: OpenSUSE Tumbleweed
Posts: 217

Rep: Reputation: 37
I think the easiest method that obviously does not improve the image quality is just to append garbage to the end of the jpeg.

Something along the lines of:
Quote:
dd if=/dev/urandom bs=1024 count=20 >> photo.jpeg
Photo is now 20kb of garbage plus the size of original.

Just in case this isn't obvious though - this will do nothing but annoy the bureaucrat that rejected the original :-)
 
1 members found this post helpful.
  


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
[SOLVED] increase size how? franklin.sucre Linux - Distributions 17 05-18-2011 02:06 PM
increase deepaksinghnegi Linux - Newbie 4 10-23-2009 03:09 PM
any way to increase CD-ROM buffer, increase spindown delay, XMMS buffer r00tb33r Linux - Hardware 5 06-12-2009 01:10 AM
increase MaxNoOfConcurrentOperations rickymaloy Linux - Server 1 07-24-2007 05:49 PM
USB time out value (to increase or not increase) lynxgogo Linux - Hardware 0 07-24-2003 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration