Code Monkey home page Code Monkey logo

hrconvert2's People

Contributors

bit-man avatar clach04 avatar henrichabert avatar mangotornado avatar nyzio2197 avatar zelon88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hrconvert2's Issues

Feature Request: Decrypting a PDF file without OWNER password

Briefly, a secured PDF file has two types of password: OWNER and USER.
The OWNER password is used to enforce permissions. The USER password is used to open the pdf file.

Sometimes, downloaded pdf (such as your bank statements) are secured/encrypted by default. I want to decrypt this even without OWNER password using HRConvert2.

Please add this feature.

Conversions not working - <title>404 Not Found</title>

HI

I’ve installed the HRconvert2 docker instance, and while I can upload files, any attempt to convert something returns the chosen format with an additional html type added - e.g if I upload file.doc’ to convert to a pdf, it will return a file called file.pdf.html` which include the following..

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.41 (Ubuntu) Server at 192.168.100.134 Port 8085</address>
</body></html>

Looking in the config.php, I have the following for the URL to use

//Put the URL used to access HRConvert here
$URL = 'localhost:8085';

My docker compose is..

version: "3"
services:
  app:
    image: dwaaan/hrconvert2-docker:latest
    restart: unless-stopped
    ports:
      - 8085:80
    volumes:
      - /share/Container/hrconvert2/config.php:/var/www/html/HRProprietary/HRConvert2/config.php

Any ideas what to do to fix it ?

HEIC support for CasaOS / Docker

HRConvert2 says it supports HEIC image file types but when trying to convert them in CasaOS, HEIC is not supported. Any help would be appreciated.

Could not verify globals!

According to error descriptions this happens when The version information contained in the versionInfo.php file does not match the version information contained in the convertCore.php file

Happens that one of the says version 3.3.4 and the other one 3.3.5

Docker package for NAS

Hi there! I would like to install it on a Synology NAS to use as file conversion tool, but I think it is not possible due to some software used.
On a similar idea is now working Stirling PDF; it does the job for pdf files, but would like to know whether HRConvert2 may be packaged in a near future as a big Docker package containing all stuff needed, or not. I have no programming skills to do so...
Cheers

Can't OCR a pdf file

Uploading a PDF file and trying to OCR (method: simple, format : txt) by pressing button Convert into Document opens a new tab with the error Not Found and no file is downloaded

image

At docker console the error show is

172.17.0.1 - - [01/May/2024:20:26:37 +0000] "GET /HRProprietary/HRConvert2/DATA/856ca1146d63/7f10275ffce6/m1m2.txt HTTP/1.1" 404 489 "http://localhost:8080/HRProprietary/HRConvert2/convertCore.php?showFiles=1&gui=Default&language=en&color=blue" "Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0"

Doing tail of txt log at Logs folder shows

Op-Act, May 1, 2024, 8:36 pm, 856ca1146d63/b0806464b510: Initiating Converter.
Op-Act, May 1, 2024, 8:36 pm, 856ca1146d63/b0806464b510: User selected to perform OCR on file m1m2.pdf.
Op-Act, May 1, 2024, 8:36 pm, 856ca1146d63/b0806464b510: Copying file m1m2.pdf to /var/www/html/HRProprietary/HRConvert2/DATA/856ca1146d63/b0806464b510/m1m2.pdf.
Op-Act, May 1, 2024, 8:36 pm, 856ca1146d63/b0806464b510: Copied file m1m2.pdf.
Op-Act, May 1, 2024, 8:36 pm, 856ca1146d63/b0806464b510: Verified file /DATA/HRConvert2/856ca1146d63/b0806464b510/m1m2.txt.
ERROR!!! May 1, 2024, 8:36 pm, HRConvert2-22, 856ca1146d63/b0806464b510: OCR Operation Failed!

Cannot install on a Synology NAS

Using Docker I cannot install HRConvert2 since the software it uses to make conversions is not ready to be installed in containers. Is there any possibility to have this running in my NAS, being stand alone or Docker container? My computer skills are limited to do so, but have tried to find a solution without success. I believe we all dream with such a self hosted solution, so would be a nice improvement that may boost its current users.
Cheers

Converter is not working

Hi,
This may be user error however when I try to convert a file it downlosts as a .htm file stating it failed.
I see nothing in the logs.

Has anyone come across this before?

Please see below :

image

Error Timezone

Após seguir o passo-a-passo (Toda a configuração de instalação ocorreu corretamente.) e abrir a pagina do conversor, é apresentado o seguinte erro:
ERROR!!! HRConvert2-4: Could not verify timezone!

Alguma idéia de como corrigir o problema?

Obrigado!

.avi file not shown after successful upload

Hi! This is a very nice project. I have been looking for more self hosting services for my homelab lately and this is awesome!

Could you help me with this issue? I was trying to convert a .avi video file to mp4. It successfully uploaded to the server (at least thats what i saw with a tick on the middle of the file after uploading.) However, after clicking continue, it said I have uploaded 0 valid files to HRConvert2. Below are the log output:

OP-Act, April 17, 2023, 12:24 pm: Logfile created using method 1.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/72e43169b3e3: Verified inbound connection.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/72e43169b3e3: Verified globals.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/72e43169b3e3: Verified required directories.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/72e43169b3e3: Cleaned temporary location.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/72e43169b3e3: Cleaned convert location.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/72e43169b3e3: Could not verify tokens!
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/72e43169b3e3: Verified color scheme.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/72e43169b3e3: Verified language.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/72e43169b3e3: Displaying the GUI.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Verified inbound connection.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Verified globals.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Created a directory at /data/HRConvert2/data/4d5d46f296a0/de58a3753093/.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Created a directory at /var/www/html/HRProprietary/HRConvert2/DATA/4d5d46f296a0/de58a3753093/.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Verified required directories.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Cleaned temporary location.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Cleaned convert location.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Verified tokens.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Verified color scheme.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Verified language.
Op-Act, April 17, 2023, 12:24 pm, 4d5d46f296a0/de58a3753093: Displaying the GUI.

Thanks again for this amazing project! Please tell me what i can help to troubleshoot the problems!

Converting files throw error : `failed second stage validation!`

Hello !
I have just installed HRConvert2 to be hosted on my VM, and I cannot use it to convert the files as I have the following error that is brought to me when trying to convert a file:

ERROR!!! November 16, 2022, 11:13 am Henri Convert-14002: The file /var/www/html/HRProprietary/HRConvert2/DATA/b1c5ad040c1c/adb7e0e161a2/my-file.txt failed second stage validation!

After looking in the docker container, it seems that the file to be verified is not the one with .txt extension as it does not exist yet, but the one with the original extension (Here it was .pdf).

Have I missed anything to make convert work?

Thanks a lot for the tool !

Command line or HTTP Rest API usage?

Is there a way I can use this without the UI? I'm trying to self host and connect it to my own React interface that I'm building. Thanks in advance.

Default Dimensions For Photos

Most of the time when I'm converting an image format, I want to keep the dimensions the same. However, the width and height values default to zero, which means I would need to check the dimensions before continuing to enter them manually.

Can the default be set to the current dimensions of the uploaded photo?

v3.1 - xlsx to pdf: failed second stage validation!

Forgive me I am very new at this. I followed your instructions exactly, and am met with this error. Lubuntu OS / HRConvert2 v3.1

When I attempt to convert xlsx to pdf I receive the following error:

ERROR!!! January 16, 2023, 4:51 pm, HRConvert2-14002, 91c041c02067/0e293df02a60: The file /var/www/html/HRProprietary/HRConvert2/DATA/91c041c02067/0e293df02a60/0115.pdf failed second stage validation!

SVG to... does nothing

I tried SVG to PNG or JPG and it did nothing. The ring is turning and nothing happen.

PNG to JPG or WebP worked flawlessly.

Thank you.

Video convert option does not show up.

Disclaim: If this post shouldn't been posted here, please inform me and I will remove it. Thanks!

When upload video, the web shows up : "You have uploaded 0 valid files to HRConvert2."
Screen Shot 2022-04-24 at 4 24 24 PM
Screen Shot 2022-04-24 at 4 20 47 PM
I've tried mp4 and mkv video formats and they don't work. But other format works fine(eg. pdf, stl, mp3, jpg....).
Also, I built this server on a virtual machine on ubuntu headless server (without GUI). I've done everything according to the guide "How_To_Install_HRConvert2.txt".

Could vm possibly to be an issue, or because I didn't install a GUI?

Thanks for replying!

does not convert office files

I build a HRConvert2 service with docker-compose downloaded from https://github.com/dwaaan/HRConvert2-Docker , but after uopload file and choose file format to convert , then I got nothing.
there is only one green animated icon keep going , but no any popup window to save as new file or anything else .
I tried various types , txt/doc/odf/ods , none of these files can be converted. but mp4 convert to mkv is fine. maybe it's related to libreoffice ?

Cannot convert if spaces in the name

Hi,

I just installed this for the first time and tried to convert a .png with a space in the name and it just gave an error saying it couldn't download it.

I changed the same file name to test.png and it works everytime with all formats. So clearly an issue with filenames containing spaces.

I can live with it as it's no big issue but thought i'd raise it incase you wanted to resolve it?

Thanks.

Server reqa for 1k online user?

Hi, @zelon88
will this code handle 1k online file converter user? I didn't go through the code, is there a job queue queue? And how powerful a server is required for at least 1k online?

mp3 converting error

related to the comment in the closed issue #28 (comment) I have to open an new issue, since it is still not resolved. converting mp3 to anything other fails still with newest release version.

[Request] - Docker Compose File

Hello!

Would it be possible to get a docker compose file? That is the easiest installation and deployment method for me!

Thanks!
SteadyStatus21

Hover Tooltips?

Once a file has been uploaded and it brings you to the "actions page", it would be really helpful to have tooltips activate when hovering over the actions beneath the file

Access by API rest?

Hi it loop very attractive !!! but i have question | is there API rest access provide ? or it's in planning ...

Thank

PHP Undefined variable

Hello, I installed your software on my home server running apache2, I have problems converting pdf files into something else and videos into something else.
I get a white page "404 Not found, The requested URL was not found on this server."
Here I report the apache2 log of the subdomain to which hrconvert2 is connected
[Sun May 10 00:48:32.782520 2020] [php7:notice] [pid 2795] [client MY_IP:49755] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59 [Sun May 10 00:48:32.841107 2020] [php7:notice] [pid 2795] [client MY_IP:49755] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/convertCore.php/ [Sun May 10 00:48:32.851332 2020] [php7:notice] [pid 2795] [client MY_IP:49755] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/convertCore.php/ [Sun May 10 00:48:32.859778 2020] [php7:notice] [pid 2788] [client MY_IP:49757] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/convertCore.php/ [Sun May 10 00:48:32.864942 2020] [php7:notice] [pid 2791] [client MY_IP:49758] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/convertCore.php/ [Sun May 10 00:48:32.905659 2020] [php7:notice] [pid 2795] [client MY_IP:49755] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59 [Sun May 10 00:49:17.739395 2020] [php7:error] [pid 2835] [client MY_IP:49769] script '/var/www/html/convertCore.php' not found or unable to stat [Sun May 10 00:49:20.985209 2020] [php7:notice] [pid 2838] [client MY_IP:49772] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/ [Sun May 10 00:49:28.749973 2020] [php7:notice] [pid 2833] [client MY_IP:49776] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php [Sun May 10 00:49:33.397059 2020] [php7:notice] [pid 2833] [client MY_IP:49776] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php [Sun May 10 00:49:34.595430 2020] [php7:notice] [pid 2833] [client MY_IP:49776] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php [Sun May 10 00:49:42.247098 2020] [php7:notice] [pid 2838] [client MY_IP:49780] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php?showFiles=1 [Sun May 10 00:49:42.249000 2020] [php7:notice] [pid 2838] [client MY_IP:49780] PHP Notice: Undefined variable: UserID in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 374, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php?showFiles=1 [Sun May 10 00:49:42.249307 2020] [php7:warn] [pid 2838] [client MY_IP:49780] PHP Warning: copy(/home/erics/HRConvert2_conversion/d85936abc361/75c314050cb1/DisOrdine__Regresso_on_Instagram_ldquoKaffeee_disordinati_\xf0\x9f\x91\xbd_EMBLEMA_Seguiteci_su_disordineeregresso____riservardquo.mp4): failed to open stream: No such file or directory in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 381, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php?showFiles=1 [Sun May 10 00:49:42.402671 2020] [php7:notice] [pid 2838] [client MY_IP:49780] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php?showFiles=1 [Sun May 10 00:49:55.044828 2020] [php7:notice] [pid 2834] [client MY_IP:49782] PHP Notice: Undefined index: method in /var/www/html/HRProprietary/HRConvert2/sanitizeCore.php on line 150, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php?showFiles=1 [Sun May 10 00:49:55.045312 2020] [php7:notice] [pid 2834] [client MY_IP:49782] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php?showFiles=1 [Sun May 10 00:49:55.046685 2020] [php7:notice] [pid 2834] [client MY_IP:49782] PHP Notice: Undefined variable: UserID in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 622, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php?showFiles=1 [Sun May 10 00:49:56.410442 2020] [php7:notice] [pid 2834] [client MY_IP:49782] PHP Notice: Undefined variable: multiple in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 709, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php?showFiles=1 [Sun May 10 00:49:57.837953 2020] [php7:notice] [pid 2834] [client MY_IP:49782] PHP Notice: Undefined variable: URLEcho in /var/www/html/HRProprietary/HRConvert2/convertCore.php on line 59, referer: https://MY_DOMAIN:MY_PORT/HRProprietary/HRConvert2/convertCore.php?showFiles=1

Create official Docker image

It would be neat if you could create a Docker image for HRConvert2 and push it to the Docker Hub so that people can seamlessly integrate it into their existing software stack.

Some typos in sanitizeCore.php

I noticed that there are some typos in sanitizeCore.php - I am too lazy to create a pull request.
line 96 - 'sstr_replace' and 'tr_replace' are used instead of 'str_replace'
also I suspect in line 95 maybe you meant filestodownload instead of upload?

best regards

heic support?

Is this possible? Apple devices default to this format for years now.

ENHANCEMENT: Apply to All Button

Can we add a feature that would apply the setting of one file to all? Mass media converting is painful given you have to change the conversion settings manually of each imported file separately. Would be nice to copy settings over to all imported files with the click of a button!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.