Closed

Rotation and crop PNG image data using pure Java -- 2

We just implemented an API where we download UPS labels and tracking information as part of a JSON response to an HTTPS Restful request. This is on a DESKTOP PC (not a web server) and the image is coming in from UPS in Landscape, 7 inches wide, by 4 inches tall ( 1400 x 800 pixels, 200 dpi).

We want you to rotate the image 90 degrees to the right, so we can print the image on a thermal label printer in portrait mode, as well as possible cropping the image to 1200 pixels of the original 1400.

I will share the existing code for handling the conversion of the JSON response, in Base64 into a binary string, and what I found in researching image cropping and rotation in Java.

Notice the 2nd to last line of code:

byte[] image = [login to view URL]().decode(imageData);

Your job is to rotate "image" 90 degrees to the right. You will see what I found in [login to view URL]

=====================================================

FULL CODE TO EXTRACT ONE OR MORE PNG LABELS - One PNG per tracking # / carton

=====================================================

Iterator itLabel = [login to view URL]();

itTrack = [login to view URL]();

for ( int i = 1; [login to view URL](); ++i )

{

JSONObject track = (JSONObject) [login to view URL]();

String tid = (String) [login to view URL]("TrackingNumber");

JSONObject label = (JSONObject) [login to view URL]();

String imageData = (String) [login to view URL]("Content");

byte[] image = [login to view URL]().decode(imageData);

[login to view URL](tid + fileExt, fileDir, "", image);

}

Skills: Java, Image Processing

See more: image upload preview using ajax java, send data web server using java, crop area image using java, crop resize image java, extract pdf data using java, crop png java, java crop png file, retrieve dpi png image java, capture image using webcam java, java crop uploaded image, image processing using java, java crop existing image, java text to speech api download, java 2 years experience resume download, how to compress png image using java, crop png image without losing transparency, auto crop png image

About the Employer:
( 18 reviews ) Lakewood, United States

Project ID: #30917810

9 freelancers are bidding on average $83 for this job

ExpertSoul

Hello, I've complete Phd Software Engineering. I've 5-Year experience in Java development and algorithm implementation. My Core Expertise in Java - C++ - C - object-oriented - Data Structure - Swing - OpenGL - JavaFX More

$100 USD in 2 days
(148 Reviews)
6.6
olgaklychkova194

Hello. Thank you for posting this project, and I'm very happy to bid on your project. I am a Computer Vision specialist who has hands-on experience working with Deep Learning projects using Tensorflow in that field. A More

$83 USD in 1 day
(4 Reviews)
2.9
dmmeddin

Hi there, I am an experienced and skilled Java developer having expertise in Core Java for over 5 years. I have understood clearly what you want so I am 100% confident that I can complete this project on time. Let’s c More

$80 USD in 1 day
(1 Review)
2.8
romantukmakov

Hi, Dear client. I am familiar with Java. I have developed many Java Project quickly and exactly. I can do this quickly. Let's discuss in more detail. waiting for your reply. thank you.

$83 USD in 7 days
(1 Review)
2.3
amithfernando

Hi , I can help you to complete this project. I have 10 years of experince in Java and Python. Will discuss more about this Thanks.

$78 USD in 7 days
(3 Reviews)
3.2
Timurtem

Hello, shlomowittels! ⭐⭐⭐⭐⭐⭐⭐ I will summarize all the lectures and will provide you with quality notes. I'm Java expert with rich experience. I'll provide you quality work according to your instructions. Please award More

$80 USD in 1 day
(1 Review)
0.8
jadexiu0415

★★★★★ JAVA /Image processing EXPERT ★★★★★ Hello, there? I can start right now. I have read your description. I am appropriate to your description. I am full-stack, full-time senior developer and have rich experience wi More

$83 USD in 2 days
(0 Reviews)
0.0
AlexSchroder

I'm from the United States and have lived here my whole life. I also know Spanish at a Bilingual level. I'm a great communicator and will go above and beyond for any project. I can get this project done within 24 hou More

$83 USD in 1 day
(0 Reviews)
0.0
andriimalyshenko

Hi, A Image Processing expert using Java here! I have a wonderful solution. I would like you to send me testing images. Your task really suits me right. I have 10+ years experience in Java and Image Processing. Please More

$80 USD in 1 day
(1 Review)
0.0