Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [conversion]

Conversion between file formats.

2
votes
1answer
32 views

Error using ps2pdf

I used to work on linux in a virtual Box and now I'm using a computer with Ubuntu 16.04. I have some ps files I need to convert to pdf and I used to run the command ps2pdf file.ps file.pdf in my ...
0
votes
0answers
42 views

Why Can't BPG images be converted to BPG animation?

I can convert JPG and PNG images to BPG (Better Portable Graphics) animation, using the following command: bpgenc -a input_%03d.jpg -o out.bpg According to the BPG documentation it is not possible ...
-1
votes
0answers
18 views

imagemagick - how to convert to PC bitmap, Windows 95/NT4 and newer format

I have a bmp file which has the following properties (file command): PC bitmap, Windows 95/NT4 and newer format, 560 x 240 x 1 I have tried to convert other file to that format but without success, ...
-1
votes
1answer
27 views

Archived rootfs: convert tar to cpio for initramfs

I have a Debian rootfs as a tar file. I would like to specify it as the initramfs source in Kconfig (using PetaLinux), but the source must be a cpio archive. How can I convert the .tar to .cpio, ...
1
vote
1answer
40 views

ebook-convert for all .epub files in the folder

This code converts epub file to txt file: ebook-convert "book.epub" "book.txt" How can I use it to convert all .epub files in the directory? I am using Ubuntu. Code from os import listdir, rename ...
0
votes
1answer
29 views

img2pdf batch script

I currently have over 10K folders. Each folder has .png and .jpg images that need to be turned into .pdf files. Files are numerically in order already. I am looking for speed. I can currently cd into ...
5
votes
4answers
57 views

Replicate directory structure applying a command to each file instead of simply copying it?

Over time, I've encountered the same pattern again and again: I have some kind of directory structure: example/ ├── a │   └── c │   ├── d.txt (120k) │   └── e.txt (60k) └── b └── f.txt (...
-6
votes
1answer
62 views

binary file decrypt [closed]

I want to see the message inside this binary file: ]�$�r�ux����f��aY64QH���K�z{������y�ߗ��y�m����Ǖ�} ��cy@^��+|�%E(H��*�I�P�����7��8�=$�.�`ïc� ...
0
votes
1answer
190 views

alien conversion from deb to rpm on fedora 27

I find myself unable to convert a .deb package to .rpm to install it on fedora. I am not able to download the equivalent rpm file, so conversion is my only way out. I get this error after using the ...
1
vote
1answer
57 views

Convert scanned image to PDF with fixed DPI

Imagine I have a bunch of JPEG files that I have scanned using a known resolution (300 dpi in this case). However the JPEG file has some additional margin at the border because the scanner's area is ...
0
votes
1answer
80 views

Convert an A4R (A4 lanscape) scanned jpeg, to A4R (A4 lanscape) pdf

I have have scanned an A4R paper sheet to a 2048x1443 jpg file. EDIT1 : It's already rotated to landscape (2048x1443). END OF EDIT1 Now if I try convert it with this command : $ convert -page A4R ...
1
vote
1answer
191 views

How to Convert Vector number 5-digit number into date format

I am trying to convert the date format something like 10/03/2018 to 43376 in shell scripting, this can be done by using format cell option as the number in excel. How can do it in shell scripting?
0
votes
1answer
61 views

how convert an ics file (exported from google calendar) as textual diary

I'd like export (possibly automatically) from google calendar an .ics file and convert it to a text diary (maybe .md, or .html). A way there is, with the IFTTT scripts, but is too commercial, I am ...
2
votes
1answer
55 views

How to convert root filesystem to virtual disk format (img, vmdk or vdi)?

I unpacked the contents of a Mageia 6 ISO image, including a Linux root file system in it, and I've updated the root file system by chrooting into it and running dnf update. I also installed a few ...
0
votes
1answer
35 views

convert a md file in odt with correct name

I added this command in Dolphin menu for convert a .md (Mark Down) file to .odt (Open Document Text ) file: pandoc %U -o %F.odt and I get the right file, but with two extension: fileorig.md.odt ...
6
votes
2answers
1k views

Convert PDF to images in 1920x1080

i want to convert a PDF to PNG images using convert. The images must fit the 1920x1080 ratio by having a ?x1080 ratio, and have the best quality. Here are many options i can use with convert : https:/...
0
votes
1answer
57 views

How to convert a png file from from 600 x 800 into 600 x 400? [duplicate]

Get info on my source png file. file old.png old.png: PNG image data, 600 x 800, 8-bit colormap, non-interlaced I want to convert old.png from 600 x 800 into 600 x 400. convert -resize 600x400 ...
3
votes
1answer
51 views

Is there a portable way to switch text case from the command line?

Is there a way, portable across POSIX operating systems and locale-aware, to switch text case from the command line--that is replacing lower case letters by upper case ones and vice versa. Using GNU ...
1
vote
1answer
32 views

QPDF renders streams as gibberish

I have been trying to use a variety of programs to render a multilingual pdf (Hebrew/English dictionary) machine readable. QPDF (as well as pretty much every other program) renders the text as ...
0
votes
1answer
27 views

Can I skip N images when creating a gif from png files?

I have several png files named aoa19.5Pressure.XXX.png where XXXX is a four digit number. The names are such that the numbers are sequential. I want to convert these into a gif. When I run convert ...
1
vote
2answers
38 views

Error while passing a variable to date command in a shell script

I am trying to convert a GMT time to AEST Time with the below code and it is working fine. date --date='TZ="GMT" 2017/07/24 12:00:00' "+%Y-%m-%d %H:%M:%S" When I pass the date variable as a parameter ...
0
votes
1answer
55 views

AIX x Linux line endings

Using Meld to compare two identical files in terms of contents, it give a warning like this: ... There was a problem opening the file "...\CHXXXX_...\psart20p.pc". There was an encoding ...
2
votes
6answers
970 views

Convert a list of decimal values in a text file into hex format

I have a need to convert a list of decimal values in a text file into hex format, so for example test.txt might contain: 131072 196608 262144 327680 393216 ... the output should be list of hex ...
0
votes
0answers
81 views

How to convert WEBM or m4a file into OPUS - SoundConverter fails

I have downloaded several webm and m4a files from youtube, each of them is without video but with audio track. Now I wish to convert them into OPUS, with settings optimized for audiobooks. So I tried ...
0
votes
0answers
26 views

Building ImageMagick command

Given a 1024x1024 .png image (RGB) I'm trying to get a 1024x1024 .png image with transparent background where the source image is resised at 810px, centered, has rounded corners, and applied the ...
2
votes
1answer
31 views

Convert image with uncommon aspect ratio without stretching the image

I have found a map online, I like to print out (see link to original here: http://collections.lib.uwm.edu/digital/collection/agdm/id/4614/). However, it has an uncommon(?) aspect ratio, which I would ...
0
votes
3answers
217 views

Convert Date time on fly in BASH

I have a file with following enteries Nov 29 15:15 ,alert_logevent Nov 29 15:15 ,alert_webhook Nov 29 15:15 ,appsbrowser Oct 20 2017 ,ClearPassOnSplunk_2 Oct 10 2017 ,Dnslookup Oct 12 2017 ,...
0
votes
2answers
30 views

Converting number format and comparing the file

I have a file with 174 fields. The first 4 fields are given below 1|2.3|2.3|34 1|0|0|34 1|0.0|0.0|34 1|11|11|34 1|.3|.3|34 1|-0.00|-0.00|34 1|1.67|1.67|34 I need to convert it into this: 1|2.30|2....
0
votes
1answer
331 views

Convert 64-bit ISO to 32-bit

I have a Linux bootable ISO of Blancco Drive Eraser which only supports 64-bit CPUs. How can I use this ISO with a 32-bit CPU? I want to erase the onboard eMMC on tablets. So far I've failed to find ...
1
vote
1answer
30 views

How to get convert to not interpolate pixels?

I am using ImageMagick's convert to convert a bunch of .fits files (an image format used in astronomy) to an animated .gif. My astronomical images are pretty low resolution (150 x 300 pixels) but ...
3
votes
3answers
2k views

How to convert all .wav files in subdirectories to .flac?

I have some songs in wav format. I would like to convert them to flac (which is also lossless, but has compression). The solution needs to recurse through subdirectories to find .wav or .WAV files (...
1
vote
8answers
375 views

How to pipe & convert the first field from decimal to hex

I've got the following onscreen output 170.170.170.0.156.96 24 that I would like to pipe & convert to the following format b8:27:eb:ef:3b:4a 24 in essence it is a decimal to hex conversion of ...
2
votes
1answer
353 views

Convert Webp to PDF

I want to convert a bunch of Webp images to individual PDFs. I'm able to do it with this command: parallel convert '{} {.}.pdf' ::: *.webp or I can use this FFMPEG command: find ./ -name "*.webp" -...
1
vote
0answers
3k views

Lightweight PDF to mobi and epub converter for Ubuntu

By lightweight I mean NOT Calibre. Please. I do not need a cataloging/library management software- which would not only consume unnecessary disk space but also ignore my current cataloging which I ...
2
votes
1answer
290 views

Pdf to Text Converter in AIX

I need to convert PDF to Text files in AIX. How can I do that? I got the XPDF util for Linux and windows. But specifically looking for AIX server. Also any licensed version would work, we can buy.
4
votes
1answer
761 views

Yum transaction check errors when converting from rhel 7 to centos 7

Due to business decisions, we are having to migrate our RHEL servers to CentOS. RHEL6 to CentOS6 appears very straight forward, but we are having all kinds of errors trying to migrate from RHEL7 to ...
0
votes
0answers
20 views

Supply dimensions to convert -crop from a list of dims

I have several hundred images I want to crop, unfortunately they are all of different sizes. I have a file that contains the correct cropping dimensions for each image called crop_dim. I want to ...
0
votes
1answer
30 views

How to convert several MSG-IDs in xml at once? [closed]

I have a Script which can convert MSG-IDs (MSG-ID placed on our DB) into XML files. Here an Example for converting one MSID into XML getDXML xxxxxMSGIDxxxxxx > filename.xml now I have more than ...
1
vote
0answers
348 views

How to convert those file names to UTF8? [closed]

i have those files ??????????%88??%81??????%8A??%84????????-??????%84??????%85??%84????????-150x150.jpg ??????????%88??%81??????%8A??%84????????-??????%84??????%85??%84????????-230x140.jpg ??????????...
3
votes
3answers
2k views

Bash convert \xC3\x89 to É?

I'm running iwlist wlo1 scan | grep ESSID inside a script. It displays French characters in the following format \xC3\x89 for É and \xC3\xA9 for é. I'm not sure what this format is called. I tried ...
1
vote
0answers
127 views

How to convert files from mbox format to PST?

I'm using readpst to convert a PST file from Outlook into text files which can be parsed in Linux. I want to select a subset of these messages, and make a new PST out of them so that they can be read ...
0
votes
0answers
68 views

How do I convert AAC to FLAC and downsize s32le to s16le while keeping media tags?

I'm struggling with this and cannot figure out how to do that: I have a couple of audio files, *.m4a encoded with AAC, 32 bits per sample, which I'd like to convert to FLAC, 16 bits per sample, ...
0
votes
1answer
37 views

Replace a certain color of pixels in a png with another png image

I have a png (items.png) which consists of mostly black pixels. I want to replace all the black pixels with another image. (background.png) The images are not the same size, items.png is smaller ...
1
vote
1answer
213 views

How to convert prc to pdf in Ubuntu cli?

Is there any CLI tool, that can convert a (Mobipocket eBook) PRC file to a PDF? I Googled on it but all I found was about converting doc(x)/HTML/series of images to pdf.
2
votes
1answer
4k views

How to convert an image to a 24-bit BMP in commandline?

I'm writing a wrapper Bash script for ARSS to make it easier to use. The program converts images to sounds and vice-versa but it only accepts 24-bit BMP images, which I was only able to produce using ...
0
votes
3answers
509 views

How to encode/decode JPG file to int sequence?

I want to convert my JPG files to int sequences and then reconvert to get the images again. My script.sh is like this: FILE=$(cat $2) TOTAL=$(echo ${#FILE} - 1 | bc); for j in $(seq 0 $TOTAL) do ...
8
votes
3answers
3k views

Markdown to PDF conversion in Pandoc: making pages landscape?

I am converting a document from Pandoc markdown to .pdf. I run the conversion like this, and everything works fine: pandoc test.MD -f markdown -o test.pdf However, I would like pandoc to output my ...
1
vote
2answers
438 views

Bash script to convert the 2nd column in csv file from Unix time to readable date / time

My input file is a comma separated .csv. I'd like to convert the 2nd columns from unix time to a readable date time format like this... before 1502280000 after 8/10/17 08:00:00 I'd also like to ...
0
votes
1answer
167 views

Automatic conversion of Inkscape <=0.91 files to the new 0.92 CSS format

Inkscape 0.92 asks the user if old files should be converted to match the new resolution. I aligned all old pictures in units of millimetre. How can I convert all old files with a script? Is there an ...
2
votes
2answers
90 views

How to find + convert on these .gif?

I want find a list of .gif files, convert them all to series of png images with filename identifiers and loop those series in this LaTeX. I am thining here how to combine the find + convert. I can ...