-
Fototrend
Mielőtt kommentelsz, olvasd el az Összefoglalót!
(Frissítve: 2020.05.31.)
Új hozzászólás Aktív témák
-
Tomm_
újonc
Na pont az update-ekkel szopt@am kb. 2 napot, mire rájöttem, hogy a király frissítések miatt nyomatja úgy ki a fotókat a nyomtatóm, hogy a közepe konkréten fehér.
Tudom, hogy driverek jönnek a frissítésekkel, észrevettem, hogy a laptomom második videokártyájának is megtalálta a hozzá illő driverét, stb.Inkább az a gondom, hogy egyrészt nem tudom változtatni az alapértelmezett programot, de főleg az, hogy valami androidos f@sság miatt nem nyitja meg a klasszik képnézegető.
Amit meg találtam, abból sajna nem értem a felét:
For any Android developers who may come across this: Seems that Windows Photo Viewer doesn't like the ICC profile metadata that
Bitmap.compresswrites (maybe it doesn't like any ICC profiles actually? I haven't checked).
Here's a way to simply strip out that metadata segment from the JPEG file, which results in a JPEG that is compatible with Windows Photo Viewer again:// Some image viewer applications(such as Windows Photo Viewer)doesn't seem to like the ICC profile meta data that Android'sBitmap.compress writes. // This decorator removes thesection. private static class RemoveFFE2OutputStreamDecorator extends OutputStream { OutputStream underlyingStream; boolean marker = false; boolean skipSegment = false;public RemoveFFE2OutputStreamDecorator(OutputStream underlyingStream) { this.underlyingStream = underlyingStream;} @Overridepublic void write(int b)throws IOException { // Based on https://en.wikipedia.org/wiki/JPEG#Syntax_and_structureif (this.marker) {this.marker = false; if ((b & 0xFF) == 0xE2) {// The 0xFF,0xE2 segmentthat Android writes seems to cause trouble with Windows Photo Viewer. this.skipSegment = true; } else {this.skipSegment = false; this.underlyingStream.write(0xFF); this.underlyingStream.write(b); } } else if ((b & 0xFF) == 0xFF) {this.marker = true; } else if (!this.skipSegment) {this.underlyingStream.write(b);}} @Override public void flush() throws IOException{ this.underlyingStream.flush();} @Override public void close() throws IOException { this.underlyingStream.close(); } }
Új hozzászólás Aktív témák
• OFF topik
• TILOS a warez!
• Windows 10 frissítési kisokos
- Befutott a régóta várt, sok P-maggal kitömött, LGA1700-as Core sorozat
- Luck Dragon: Asszociációs játék. :)
- ASUS routerek
- Retro teló rajongók OFF topicja
- Project Motor Racing-Straight4 Studios
- BMW topik
- OLED TV topic
- iPhone Ultra néven jöhet az Apple első foldja, nem lesz olcsó mulatság
- Mit tehetsz jogilag, ha átvertek, megkárosítottak a Hardveraprón?
- Arc Raiders
- További aktív témák...
- MEGA AKCIÓ! - Jogtiszta Windows - Office & Autodesk & CorelDRAW - Azonnal - Számlával - Garanciával
- Windows 10 11 Pro Office 19 21 Pro Plus Retail kulcs 1 PC Mac AKCIÓ! Automatikus 0-24
- Windows, Office licencek kedvező áron, egyenesen a Microsoft-tól - Automata kézbesítés utalással is!
- Vírusirtó, Antivirus, VPN kulcsok GARANCIÁVAL!
- PC Game Pass előfizetés
- Törött, Hibás iPhone felvásárlás!!
- 265 - Lenovo ThinkBook 16 (G6 ABP) - AMD Ryzen 5 7530U, no GPU
- AKCIÓ! Dell Latitude 5455 14 FHD+ üzleti notebook - Qualcomm X Plus X1 16GB DDR5 512GB SSD W11
- Xiaomi 12T 128GB, Kártyafüggetlen, 1 Év Garanciával
- ÁRGARANCIA! Épített KomPhone i9 14900KF 64GB RAM RTX 5090 32GB GAMER PC termékbeszámítással
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest

