Questions tagged [conversion]

Conversion between file formats.

Filter by
Sorted by
Tagged with
1 vote
1 answer
30 views

A2 on four A4 pages? | Convert A4 PDF to "A2 on four A4" PDF?

Given e.g. pdf (in any size) how to enlarge it to A2 size and print on four A4 pages? (if possible it would be great if pdf having multiple pages we could split like this, so if there is pdf with ...
user avatar
0 votes
0 answers
16 views

Converting XLSX (or ODS) to PDF with no admin rights

I am writing a code in PHP that open and edit an Excel File (template) using PHPExcel library. At the end convert to PDF. I tried use all writers to PDF that PHPExcel has: Dompdf, Mpdf and Tcpdf. None ...
user avatar
  • 101
0 votes
0 answers
17 views

How to copy shared library into initrd?

My initrd cannot convert text file from UTF-16 to UTF-8 by "iconv" and it seems to be caused by there is no the folder "/main/lib/x86_64-linux-gnu/gconv/" and the file "/main/...
user avatar
  • 21
0 votes
0 answers
49 views

Imagemagick: resize to given physical size, keeping pixel count

I have an image of Pixel size: 2598 x 1732 Print size: 36.08 in x 24.06 in Dpi: 72 I want to convert it with Imagemagick to Pixel size: 2598 x 1732 (the same) Print size: 12 cm x 8 cm (my target) ...
user avatar
1 vote
1 answer
57 views

Convert string time to seconds

I'm receiving an uptime in this format: 167h58m10.586582048s I want to transform it to seconds and discard the fraction part. I know awk could do that if only the received string had the same ...
user avatar
1 vote
1 answer
124 views

How to convert output of a terminal app to an image?

Suppose the CLI application my_bin produces an output in terminal which consists of colored text, Unicode symbols and emojis. How can I convert the output to a svg or an image on Ubuntu? For example, ...
user avatar
1 vote
1 answer
35 views

Merge a png on top of a gif with shell

I am trying to merge a png with a gif (put the png on top of the gif) and then have the result as a gif. I played around with convert, but cannot quite get it to work the way I need it. I have tried ...
user avatar
0 votes
0 answers
183 views

While trying to convert my python project to exe on Kali, the following dependencies error is popping up

I'm trying to convert my python project to exe on Kali, but the following dependencies error is popping up. Command pyinstaller --onefile -w "Emp_system.py" ...
user avatar
2 votes
3 answers
989 views

Point out my mistake while converting TIFF to PNG/JPG

This is a input tiff image, which I want to convert to JPG/PNG. googledrive-link-to-download-sample As general rule of thumb, I always use following command to convert between 2 image formats (mainly ...
user avatar
  • 97
1 vote
2 answers
115 views

How to run PDF to TIFF conversion in parallel?

I have this command here for batch converting PDF documents (first 2 pages) to TIFF files using pdftoppm. The goal is to put the TIFF images into its own folder with folder name matching the original ...
user avatar
3 votes
1 answer
187 views

ASCII to ANSI convertion does not work

Trying to convert an ASCII file to ANSI on Linux: $ file -bi relocate.xml text/xml; charset=us-ascii $ iconv -f us-ascii -t ms-ansi < relocate.xml | file -bi - text/xml; charset=us-ascii $ cat ...
user avatar
  • 1,237
0 votes
2 answers
47 views

check width of image before convert it

I use the following script to convert all jpg and png images: # absolute path to image folder FOLDER="/home/*/public_html/" # max width WIDTH=1280 # max height HEIGHT=720 #resize png or ...
user avatar
1 vote
2 answers
63 views

Substract date in custom format

I need to substract some date from current date to determine the age of some connections. The date is in this format: YYMMDDHHMISS. The output can be pretty much anything that I can use to determine ...
user avatar
0 votes
0 answers
19 views

Pandoc error converting from .md to .html

I'm using this command to convert .md file to .html file: pandoc -s -t ~/Documents/neocities-anve/templ/dynamic.html -c ~/Documents/neocities-anve/templ/template.css ~/Documents/neocities-anve/source/...
user avatar
0 votes
2 answers
99 views

Is there any linux utility to create plain binary dump of file and vice versa?

I want to know is there any linux utility or procedure for generating plain binary dump and reversing it back to the original file (as xxd is capable of doing it with -r argument)? I have tried xxd, ...
user avatar
  • 11
0 votes
0 answers
16 views

Change Windows Root file system table

I am trying to convert a VMDK image to iso following (this) guide. But I am running into a problem, I am transferring a Windows FS which doesn't follow the ~6th step. Basically, I have this layout in ...
user avatar
0 votes
0 answers
275 views

Combining VMDK files & Converting to ISO

Overview So this problem is broken into a few different stages, I've done a pretty decent job of understanding what I need to do so far, but I still have questions. Background What I'm Trying to Do ...
user avatar
0 votes
1 answer
771 views

Is there a script or tool that converts HTML to PDF?

I want to convert an HTML page to PDF file. I tried online converting tools but they are slow and I can't trust them. Is there any script or tool works on the command line that convert web pages to ...
user avatar
0 votes
2 answers
515 views

How to convert xlsx file to csv using shell script? [closed]

I have tried with libreoffice, ssconvert, xlsx2csv to convert the file but I am getting "command not found". Could you please help on that? xlsx2csv ssconvert file.xlsx file.csv libreoffice -...
user avatar
  • 1
0 votes
1 answer
89 views

libreoffice headless interprets source image as text

I am trying to use libreoffice to convert different source formats to pdf. This works with most formats but image formats are always interpreted as text: libreoffice --headless --convert-to pdf:...
user avatar
  • 125
1 vote
1 answer
266 views

Remarkable tablet: Convert text file into notebook page

I am using the Remarkable 2 tablet with its note-taking functionality. I can scribble new notebook pages or annotate pdf-documents with the tools on it. I would, however, like to import existing text ...
user avatar
1 vote
0 answers
55 views

How to play .dvs (DTI's DVSSDiscPlayer format) on Linux systems?

.dvs is the exotic extension of a file / a database of files / a database of streams (cross out wrong). This type of file is used in the CCTV to let the operator watch the recording from, let's say, ...
user avatar
2 votes
1 answer
500 views

Set PDF tags while converting images to PDF with ImageMagick

I'm converting images to a single PDF-file using convert utility: $ convert "document-*.tiff" -compress jpeg -quality 60 "output.pdf" Resulting document has the following tags set ...
user avatar
  • 3,872
-1 votes
2 answers
66 views

How to translate a non sugary syntactic shell (Bash) command into "lower" types of code such as assembly or even machine code?

Please consider: cd ~ cd $HOME I would say that the first command is a possible sugar syntax of the second command, and that the second is less abstract. Just for the sake of demonstrating how ...
user avatar
0 votes
1 answer
707 views

How to extract every 10th frame from a video?

I have a video and I want to extract every 10th frame as I am getting way too many images. ffmpeg -i out1.avi -r 1 -f image2 image-%3d.jpeg How to extract images from video file?
user avatar
1 vote
1 answer
289 views

How to replace Unicode code numbers by UTF-8 characters in a number of files?

I have 500 files that contain escaped Unicode characters like so: Albert Vel\u00e1zquez V\u00e9ronique Ekin etc. The data was queried from a server by a script through XMLHttpRequests and I assume ...
user avatar
  • 7,477
0 votes
2 answers
69 views

Is there a way to strip the high bit of each byte in a file?

I've been trying to figure out if this can be done in sed or tr, but I can't find it. I have a bunch of files from an old Apple II which have the high bit set on each byte. On a Mac, this results in a ...
user avatar
  • 113
0 votes
1 answer
60 views

efficient way to compose all frames in a video to a single image

I've got a 720p video file that is about 20 minutes long. I want to compose each frame in the video using a single operator (e.g. lighten, darken, etc.) to produce a single image output. My thought ...
user avatar
  • 474
0 votes
0 answers
112 views

Conky script not running after being converted

I am attempting to convert an older conky widget to the new syntax of 1.10+, but I can't for the life of me figure out why it won't run. I've ran through everything to make sure it was converted ...
user avatar
3 votes
3 answers
772 views

How to convert escape sequences to text while preserving display format?

I have a text file that contains (ANSI ?) escape sequences: When I cat the file I get formatted output: How do I save / pipe the output of the text file to a new file so that the control codes are ...
user avatar
  • 195
1 vote
2 answers
2k views

Debian: is there a shortcut for switching from Ubuntu to Debian?

I have been running Ubuntu 20 and I want to switch to Debian 10. I know how to back up my important software, install Debian 10 from a proper ISO image, and then restore my backed-up software onto the ...
user avatar
  • 259
0 votes
1 answer
458 views

Convert text file data to table [closed]

I have a text file with 2 columns which I would like to convert to a table. The below image is just what it looks like in the file, not a table. Formatting is putting all my text in one line when ...
user avatar
2 votes
2 answers
2k views

Convert/replace time from epoch milliseconds to human readable date in logfiles

I have a log file with the following structure Example: 1522693524403 entity1,sometext 1522693541466 entity2,sometext 1522693547273 entity1,sometext ... Now I would like to replace the time from ...
user avatar
0 votes
1 answer
607 views

ImageMagick generated PDF renders as blank pages in Chrome

I have drawn a png file using Krita: I then converted this file to a pdf file using convert: convert test.png test.pdf When I open this file in my PDF viewer (Evince), I see the image above, just as ...
user avatar
  • 157
1 vote
2 answers
178 views

Batch convert images with xargs & convert, how to name output file?

It's known that images can be converted to one single pdf with the following command (assuming images filenames are order correctly): convert *.jpg output.pdf. However, this approach may take too much ...
user avatar
3 votes
0 answers
48 views

File conversion canary

Is there a way to tell if a flat ASCII log file, eg. the output of a command, was converted to an office document (typically: Word, Excel, Notepad) and back to a flat text file? I know at least one of ...
user avatar
  • 13.1k
0 votes
1 answer
554 views

Convert folder to .bin-File

I just downloaded a bin file for my new application. The problem is that I had to change some config files, and for that I used 7-zip to unpack the files. I changed the files the way I want to have ...
user avatar
3 votes
3 answers
542 views

How to properly decode utf7 file names obtained from an IMAP server

I have a few directories that I downloaded from an IMAP server. Example: $ find . -maxdepth 1 . ./&BCEEPwQwBDw- ./&BCMENAQwBDsENQQ9BD0ESwQ1- ./inbox ./&BCcENQRABD0EPgQyBDgEOgQ4- ./&...
user avatar
0 votes
1 answer
63 views

PDF conversion: 4 pages/sheet to 1 page/sheet

I am struggling to revert / undo a 4 pages per sheet PDF to a 1 sheet per page document. The reason why I am trying to undo it is because I can barely read the printed document. The original file has ...
user avatar
0 votes
1 answer
112 views

How to run single command on multiple files to convert file format?

I am trying to convert file format from fa to fq using seqkit on Linux terminal. Command is simple as shown below. seqkit fq2fa Std_metabat2_bin.9_sub.fa -o Std_metabat2_bin.9_sub.fq -j 20 But, I ...
user avatar
  • 1
3 votes
1 answer
4k views

how to open/convert .ost file (Microsoft Outlook email folder) on linux

How can I convert (or open) .ost file (Microsoft Outlook email folder) on linux ? Ideally, I would like to read it with Mutt. But mutt does not seem to understand this format. Therefore I would like ...
user avatar
0 votes
0 answers
20 views

mutool clean pdf output doesn't show German utf-8 characters (umlauts) and some special chars

command: mutool clean -d somepdf.pdf piece of output: Die folgende Gegen\374berstellung von alter und neuer Logik hat selbstredend nichts zu tun mit der sp\344tmittelalterlichen Unterscheidung ...
user avatar
  • 1
0 votes
1 answer
620 views

ffmpeg batch command to reduce file quality

I've got a directory with thousands of images (png, jpg, bmp, etc.) and thousands of videos (mp4, mpv, mpeg, etc.). The png images may be ~10 MB and I can open them one at a time in GIMP, reduce ...
user avatar
1 vote
1 answer
840 views

ImageMagick - how to preserve exact palette in .PNG

I'm trying to use convert(1) from ImageMagick to convert from .tga to .png (and back again later), while preserving exact palette that was used. Source image is TARGA color indexed file, having a ...
user avatar
  • 2,741
0 votes
1 answer
43 views

convert directory names with german 'now' date to YYYY-MM-DD

I exported pictures from mac's iPhoto. The directories are named with the date in local naming ("Day. MONTH YYYY"): 8. Mai 2013/ 13. Juli 2013/ 31. Oktober 2014/ and some of them with GPS ...
user avatar
  • 1
2 votes
1 answer
637 views

Libre Office - convert calc/exel schedule to csv from command line

I'm truing to batch convert some exel schedules to csv format from the command-line with the following command: libreoffice --convert-to csv *.xlsx I'm getting: error xsltParseStylesheetFile : cannot ...
user avatar
  • 4,730
2 votes
0 answers
466 views

ImageMagick refused to convert the animated GIF and killed the process silently due to CPU

I tried with these solutions below, but unsuccessfully: ImageMagick convert problem, command killed or silently exits Using disk for processing of huge images ImageMagick convert out of memory ...
user avatar
0 votes
1 answer
474 views

ffmpeg not copying FRONT_COVER image metadata during conversion

When doing an mp3 → mp3 (or flac → mp3) conversion, -map_metadata can be used to copy metadata from the input file to the output file: ffmpeg -hide_banner -loglevel warning -nostats -i "${source}&...
user avatar
0 votes
0 answers
89 views

Best way to crop a RAW image file to TIFF preserving quality

I am a nature photographer, and it is usual that I take a picture with the subject in a small portion of the picture. Now I am doing astrophotography and face the same situation, with a small Saturn ...
user avatar
1 vote
0 answers
156 views

heif-convert: symbol lookup error: undefined symbol: jpeg_write_icc_profile, version LIBJPEG_6.2

I have run heif-convert successfully not long ago but now I get this error: >heif-convert bob.heic bob.jpeg heif-convert: symbol lookup error: heif-convert: undefined symbol: jpeg_write_icc_profile,...
user avatar
  • 153

1
2 3 4 5
7