Elfinder: one click format converter of images, docs, music, video - who want?

Created on 1 Jul 2018  路  17Comments  路  Source: Studio-42/elFinder

It will be useful to convert one file type to another by one click in ElFinder menu.
It is easy to convert many files by: https://www.online-convert.com/
It support most of images, document, audio and video at it has API.

Api: https://apiv2.online-convert.com/, conver remote; https://apiv2.online-convert.com/docs/getting_started/job_remote_file.html, convert upload: https://apiv2.online-convert.com/docs/getting_started/job_uploading_file.html

It has additionally php class: https://github.com/onlineconvert/onlineconvert-api-sdk-php

It is free with big free limit: 30 minutes conversion by website a day and max 100M one file it is enough to convert many things a day.

Additionally is many useful functions:

  • Image: crop, normalize, deskew, sharpen, antialias, remove background, color to (gray, monochrome, negate, etc.),
  • Audio: crop, normalize
  • Video: frame frate, cut, change audio
  • Documents: ocr
feature

All 17 comments

@nmpetkov ask about some image enhancement tools too, this will be possible with this converter.

The online-convert.com has many options, and it takes a lot of time to use the API. It is easy to create a command that opens a new tab with content URL, how about it?

@nao-pon how about using "iframe"?

My idea was such, if I press right button on for example file.jpg in context memu I have: Convert - and submenu for ex: .bmp, gif, png, bmp, tiff. I click one of it format and conversion is made.
By this simplest api below if possible (first or second - by upload or by url):
https://apiv2.online-convert.com/docs/getting_started/job_remote_file.html,
https://apiv2.online-convert.com/docs/getting_started/job_uploading_file.html
Last option will be: Custom (additionally adjustment) and then when you press custom then it will be open new tab as suggest @nao-pon or iframe like suggest @CodeLyokoXtEAM where you adjust additional convert param like size of image, color etc.
Is it possible ?

It will be only 3 class for converts the "format to" (they are short enough for submenu):
images: bmp eps gif exr ico jpg jpeg png svg tga tiff wbmp webp + custom
document: doc docx sxw html odt pdf ppt pptx rtf txt + custom
audio: acc aiff flac m4a mmf mp3 ogg opus wav wma + custom
I think that we can ommit: archive converter, ebook converter, webservice or hash generator
video - Custom option only, because too big files etc.

I can prepare exact matrix which format can convert to which format @nao-pon

I have created a test cases that does not use the API.

One is an implementation as an editing plugin and the other is an implementation of an independent command.
Edit plugin opens to iframe, command opens online-convert.com on tab.

You can try them on my developer site.

Your are fast :-) @nao-pon

  • I only can't see anything on link to "my developer site" I see only: aaa
    nothing more (in source is many scripts etc) but on screen (html) is only: aaa
    Then I can't try your solution

Sorry, please scroll down to find elFinder manager.

Iframe is better for sure, but from me is the most important is that file will be saved to ElFinder, but not downloaded to disk. I think about usability for user, are you look already at this simple useage too for direct conversion: https://apiv2.online-convert.com/docs/getting_started/job_remote_file.html

some onlineconverter bug additionally:
Online converter has problem with url with spaces -in this example normally when click convert work, but when go to small link: for ex. change setting of jpg - then special character for space is changed to white space and then not work when try to convert.

Thanks a lot for your work :-) @nao-pon

The problem of the space character of file name is a bug of online-convert.com. I reported this issue to support.

Regarding API usage, I will consider how to implement polling.

:-)

I am happy to see, on dev site working example with saving to ElFinder :-)

@jacceko , @CodeLyokoXtEAM Thanks! 馃憤

@CodeLyokoXtEAM I fixed it. Thank you! 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mozhdeh-d picture Mozhdeh-d  路  14Comments

flack picture flack  路  13Comments

dleffler picture dleffler  路  11Comments

philouphil picture philouphil  路  17Comments

isreehari picture isreehari  路  12Comments