File Conversion
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: File Conversion
File Conversion
25-01-2012 2:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
What I am trying to do is convert a PNG file to a JPEG File.
A quick search comes up with a number of ways with one showing a simple input filexx.png output filexx.jpeg but this command was met with sudo apt-get install yagiuda ?
Is that correct or should I be taking a different approach to this ?
Re: File Conversion
25-01-2012 3:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
(I would think that GIMP may have this facility.... if not .... don`t cry.... )
download and install Irfanview. You will need to use WINE to get it to work on Linux
Open the PNG file,
Click FILE > Save as> then in the drop down box below you can choose the file extension you want.
Should be saved in the original folder location, with the new extension.
(I would think that GIMP may have this facility.... if not .... don`t cry.... )
Re: File Conversion
25-01-2012 3:26 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: File Conversion
25-01-2012 3:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
http://www.imagemagick.org/script/convert.php
Re: File Conversion
25-01-2012 4:24 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: File Conversion
25-01-2012 4:35 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks for that.
Re: File Conversion
25-01-2012 5:46 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote
(I would think that GIMP may have this facility.... if not .... don`t cry.... ;D)
Re: File Conversion
25-01-2012 6:40 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
John
edit: tried it and although it displays properly in preview my photo software wouldn't open it - sorry.
J
EDIT: but you can insert it into a document in the usual way.
J
Re: File Conversion
25-01-2012 10:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
png is lossless, jpg is lossy.
Changing file extensions is not clever
Re: File Conversion
25-01-2012 10:19 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
works for me - although GIMP would do it better.
Quote convert image.png image.jpg
"In The Beginning Was The Word, And The Word Was Aardvark."
Re: File Conversion
27-01-2012 1:26 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
convert -quality 91 image.png image.jpg
For most purposes it will be as good as GIMP, and a lot quicker. If you've got lots of images to change convert will be loads quicker.
Re: File Conversion
27-01-2012 6:38 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: HighLordPhanty png and jpg are completely different formats.
png is lossless, jpg is lossy.
Changing file extensions is not clever
I'll consider myself chastised and go and sit on the naughty step.
In fairness, I never said it was clever, only that it seemed to work, and if it didn't you only have to change the extension back again
Re: File Conversion
27-01-2012 9:16 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: HighLordPhanty png and jpg are completely different formats.
png is lossless, jpg is lossy.
Changing file extensions is not clever
The only file extensions which I have found to be able to be swapped are .mov and .avi (both video files). Some applications will only handle one type, but I have found them to work if you swap extensions.
Re: File Conversion
27-01-2012 9:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: File Conversion
28-01-2012 1:48 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote Magic number
One way to incorporate such metadata, often associated with Unix and its derivatives, is just to store a "magic number" inside the file itself.
Originally, this term was used for a specific set of 2-byte identifiers at the beginning of a file, but since any undecoded binary sequence can be regarded as a number,
any feature of a file format which uniquely distinguishes it can be used for identification.
GIF images, for instance, always begin with the ASCII representation of either GIF87a or GIF89a, depending upon the standard to which they adhere.
The magic number approach offers better guarantees that the format will be identified correctly, and can often determine more precise information about the file.
Since reasonably reliable "magic number" tests can be fairly complex, and each file must effectively be tested against every possibility in the magic database,
this approach is relatively inefficient, especially for displaying large lists of files (in contrast, filename and metadata-based methods need check only one piece of data,
and match it against a sorted index). Also, data must be read from the file itself, increasing latency as opposed to metadata stored in the directory.
Where filetypes don't lend themselves to recognition in this way, the system must fall back to metadata.
It is, however, the best way for a program to check if a file it has been told to process is of the correct format: while the file's name or metadata may be altered
independently of its content, failing a well-designed magic number test is a pretty sure sign that the file is either corrupt or of the wrong type.
On the other hand a valid magic number does not guarantee that the file is not corrupt or of a wrong type.
So-called shebang lines in script files are a special case of magic numbers.
Here, the magic number is human-readable text that identifies a specific command interpreter and options to be passed to the command interpreter.
Another operating system using magic numbers is AmigaOS, where magic numbers were called "Magic Cookies" and were adopted as a standard system
to recognize executables in Hunk executable file format and also to let single programs, tools and utilities deal automatically with their saved data files,
or any other kind of file types when saving and loading data. This system was then enhanced with the Amiga standard Datatype recognition system.
Another method was the FourCC method, originating in OSType on Macintosh, later adapted by Interchange File Format (IFF) and derivatives.
See Wikipedia...
"In The Beginning Was The Word, And The Word Was Aardvark."
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page