You need to convert a small existing Java code to PHP. The size of the Java code is 157 lines, with empty lines 🙂
The Java code is added to “DecodeRLE.java”.
Description of Java code: Bit operations, dispack the received data bytes and creates an image from it. Judge by code creates the “BMP”. An example of the packed data is added - "img_dat.rle". An example of the image that is expected to be obtained from "img_dat.rle" is added - "img_res-need.png" (it's just a look that should be on the image, I manually recorded it from the screen as png).
Needed: Give me a PHP code that can do what makes Java code, the resulting image should be recorded as a png file format!
Applications 1
Client's review of cooperation with Vlad K.
Transcribe the code from Java to PHP. Specifications - Creation/Processing of ImagesI liked the diversity of the government. He tried to solve the problem in different ways. It really liked.
Freelancer's review of cooperation with Viktoriia Bun
Transcribe the code from Java to PHP. Specifications - Creation/Processing of ImagesGreat thanks. A good commander. I set the task correctly. React quickly, without any problems.
-
1735 23 2 Good day .
Ready to perform your task in the best way. PHP knows well, also worked with images, files and byte processing. The algorithm seems simple, but there is a place to consider. It is necessary to clarify in what form the script should be used: in the terminal or on the site.
Is there also a possibility to use the PHP GD or ImageMagick extension? They are used on most websites to process and save images. There is no such algorithm in them, but they allow you to quickly create a .png file.
Which version of PHP should you use? 7 or 8?
-
22 1 0 Good evening . I can take this task. I was interested.
-
Доброго дня, зацікавила ваша задача. Але не можу завантажити ваш джава-код, скиньте його на гугл диск з відкритим посиланням або в особисті. Переляну і зможу оцінити роботу, спасибі.
-
А є вже знайшов.)
-
Там в коде много побитовых и буферных операций PHP Не совсем тот язык для этого.
Я бы обернул этот код на java в Socket сервер И из PHP Кидал байты(или имя файла) через socket и получал ответ.Такой себе типа микросервис получится
-
Current freelance projects in the category Java
Development of an Android application player for the online TV service
609 USD
We need an Android developer to create a native Android application for an online TV service. Two versions are planned: for mobile devices: smartphones and tablets; for Android TV / Android STB: set-top boxes. Estimated timeline: up to 3 months. Estimated budget: 150,000… Java, App Development for Android ∙ 24 days 18 hours back ∙ 31 proposals |