[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/jp/ - Otaku Culture


View post   

File: 516 KB, 1400x917, Aruru Karura Touka HQ.jpg [View same] [iqdb] [saucenao] [google]
205633 No.205633 [Reply] [Original]

Can an image be losslessly rotated?

>> No.205636

>>205633

get Fireworks 8 faget.

>> No.205638

>>205633

You can't rotate an image without losing a little bit of your soul.

>> No.205640

/g/

>> No.205651

Yes, JPEG images CAN in fact be losslessly rotated.

You need a special tool for the job though. IIRC, The JPEG Wizard has the ability to do it.

>> No.205675
File: 959 KB, 917x1400, 1205454835513.jpg [View same] [iqdb] [saucenao] [google]
205675

>> No.205680

yeah it's gonna look awesome when you rotate it

>> No.205682

turn your monitor on its side.

>> No.205686

ALL YOU HAVE TO DO IS PRESS THE FUCKEN ROTATE BUTTON YOU DUMBSHIT

>> No.205699

>>205633
Irfanview and it's free.

>> No.205712

Xnview can do it to JPGs without loss.

>> No.205727

>>205675
516 KB -> 959 KB.

Guess I'll need to download one of those programs... What a pain.

>> No.205735

1: Open in Picture/fax viewer
2: ?????
3: kill yourself knowing you have archived epic fail

>> No.205738

>>205633
Depending on format, yes. PNG can be losslessly rotated. JPG cannot. However, the loss in quality is mostly unnoticeable.

>> No.205743

>>205738
jpeg CAN, you idiot. there are programs out there to do it.

>> No.205749

Just tilt your fucking head

>> No.205766

jpegtran -rotate 90 picture.jpg

You computer illiterate motherfucker.

>> No.205770

>>205633
DO A BARREL ROLL!

>> No.205765

>>205749

if it were that easy thats exactly what we all would do. pictures would have signs to say "tilt head for proper viewing"

but when you do that its just not the same.

>> No.205772
File: 133 KB, 532x671, 1205455865519.jpg [View same] [iqdb] [saucenao] [google]
205772

>>205686
>>205735
Trolls or are they really that fucking dumb?

>> No.205786
File: 516 KB, 917x1400, 1205456007722.jpg [View same] [iqdb] [saucenao] [google]
205786

>losslessly rotated

2 kilobytes off. Deal with this. Zoomed in comparison incoming.

>> No.205788
File: 51 KB, 716x505, 1205456011476.jpg [View same] [iqdb] [saucenao] [google]
205788

>> No.205795
File: 13 KB, 1352x430, 1205456061108.png [View same] [iqdb] [saucenao] [google]
205795

>>205786
Quick fix until this happens.
>>205788

>> No.205800

You must really like that picture.

>> No.205812

>>205800

It's got a drunk, a Touka, and a sleeping loli. What's not to like?

>> No.205828
File: 516 KB, 917x1400, 1205456439380.jpg [View same] [iqdb] [saucenao] [google]
205828

Yes.

>> No.205838
File: 497 KB, 912x1400, 1205456538520.jpg [View same] [iqdb] [saucenao] [google]
205838

>>205786
Thanks, I just did it with irfanview+jpeg transform plugin too.

>> No.205846

I checked the Optimized box though so it's a bit smaller, but it supposedly not effect image quality?

>> No.205856
File: 44 KB, 433x232, 1205456699838.jpg [View same] [iqdb] [saucenao] [google]
205856

>>205846
Doing it wrong, resulting image should have the same size.

>> No.205860

>>205828
Weird, left edge cut off and moved to the right of the image
>>205838
left edge cut off and it's just gone.
>>205786
Juuust right. Ima just save this.

>> No.205864

>>205856
>mac

No, you're doing it wrong.

>> No.205890

>>205864
gb2/g/

>> No.205892
File: 63 KB, 550x494, 1205457017892.jpg [View same] [iqdb] [saucenao] [google]
205892

How/when did the exif thumb of this image get busted?

>> No.205898
File: 293 KB, 566x800, 1205457077671.jpg [View same] [iqdb] [saucenao] [google]
205898

Anyway, thanks guys, have a Touka pic.

>> No.205920
File: 171 KB, 662x900, Aruru01.jpg [View same] [iqdb] [saucenao] [google]
205920

And a loli.

>> No.205934
File: 92 KB, 900x830, 1205457344954.png [View same] [iqdb] [saucenao] [google]
205934

And a drunk.

>> No.205938

JPEGs can be losslessy transformed in some ways. For example, baseline<->progressive, and changing/optimizing huffman tables (reducing file size without loss).

As for rotations and mirroring, it depends. These operations can be done in MCU units, which are at best 8x8 and at worst 16x16. So a picture whose dimensions are multiple of 16 can always be losslessy rotated and/or mirrored.

For pictures whose dimensions aren't multiple of 16 (or even 8), it's more difficult: you can "hide" pixels on the right and bottom edges, but not on the top and left. I'd explain what this allows but probably nobody is reading this, so fuck off.

tl;dr: in the case of OP's image, it's impossible. It'd be possible if you cropped 5 pixels from the bottom (from the left after rotation)

>> No.205969

>>205938

Also, forgot to add: losslessy rotating a file can (and usually will) change its size. Not a lot, but it will, since there's some scan-order spatial compression on CD coefficients and probably some other things I don't recall right now.

Many apps can do this. jpegtrans, IrfanView via JPEG lossless ops plugin, and even the fucking Windows Image and Fax Viewer. This last one does it automatically. If it can't due to the limitations mentioned, it'll warn you that the quality is going to be decreased. I don't remember if that warning had a "don't show again" box, so be careful.

>> No.205998

>>205969

And with CD, I mean DC. Crap, I suck today.

Most rotators re-calculate huffman tables anyway when writing (though W'IaFV doesn't), so that will throw the size off even more.

Also, to end this pointless exposition, some DCT implementations aren't "transposable", so the rotated image will show +/-1 differences even though the data is the same. Nothing to worry about since the DTC isn't bitexact anyway and +/-1 errors between decoders are acceptable and common.

>> No.206010

Holy fuck, I did not know /jp/ was home to a bunch of picture format experts.

>> No.206015
File: 1 KB, 64x80, 1205457939120.gif [View same] [iqdb] [saucenao] [google]
206015

Did someone say Huffman? Because I think someone just said Huffman.

>> No.206030

>>205938
>>205969
>>205998
You decided to make it your study, I see.

>> No.206065

>>206030

Not really. This guy did, though:

http://www.impulseadventure.com/photo/rotation-partial-mcu.html

And he explains it much better than me.

That site has a lot of stuff related to JPEG, you might want to check the other pages too if you are interested on it.

(Check the Technical Articles in http://www.impulseadventure.com/photo/ )

>> No.206094

>>205772
itt idiots who have no fuckin clue tell other idiots how to do some worthless shit.

>> No.206122

>>206065
Oh yeah I've been across that guy's site before, good articles indeed.

>> No.206443

who cares if the quality decreases

enjoy your bitrot and the fact that you can't do anything about it

>> No.206969
File: 378 KB, 1280x960, 1205465784198.jpg [View same] [iqdb] [saucenao] [google]
206969

y hello thar

>>
Name
E-mail
Subject
Comment
Action