Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 52B34200D4E for ; Thu, 7 Dec 2017 14:33:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 51B1E160C1E; Thu, 7 Dec 2017 13:33:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9890C160C1F for ; Thu, 7 Dec 2017 14:33:05 +0100 (CET) Received: (qmail 71047 invoked by uid 500); 7 Dec 2017 13:33:04 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 71035 invoked by uid 99); 7 Dec 2017 13:33:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2017 13:33:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D68901A10B4 for ; Thu, 7 Dec 2017 13:33:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.702 X-Spam-Level: X-Spam-Status: No, score=-98.702 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XPf2It2MIGAR for ; Thu, 7 Dec 2017 13:33:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C8A455F5D2 for ; Thu, 7 Dec 2017 13:33:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C6362E2597 for ; Thu, 7 Dec 2017 13:33:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id E4685255D2 for ; Thu, 7 Dec 2017 13:33:00 +0000 (UTC) Date: Thu, 7 Dec 2017 13:33:00 +0000 (UTC) From: "Marco Wagner (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IMAGING-188) ICNS Image Parser: Support for large Icons (ic07, ic08, ic09, ic10 [128px, 256px, 512px, 1024px]) and JPEG 2000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 07 Dec 2017 13:33:06 -0000 [ https://issues.apache.org/jira/browse/IMAGING-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marco Wagner updated IMAGING-188: --------------------------------- Summary: ICNS Image Parser: Support for large Icons (ic07, ic08, ic09, ic10 [128px, 256px, 512px, 1024px]) and JPEG 2000 (was: ICNS Image Parser: Support for large Icons (ic07, ic08, ic09, ic10 [128px, 256px, 512px, 1024px])) > ICNS Image Parser: Support for large Icons (ic07, ic08, ic09, ic10 [128px, 256px, 512px, 1024px]) and JPEG 2000 > --------------------------------------------------------------------------------------------------------------- > > Key: IMAGING-188 > URL: https://issues.apache.org/jira/browse/IMAGING-188 > Project: Commons Imaging > Issue Type: New Feature > Affects Versions: 1.0 > Environment: OS X > Reporter: Marco Wagner > > I needed larger icons of icns files, than currently extracted with the Apache Commons Imaging ICNS Image Parser/ICNS Decoder. > So I edited the Source Code: > In case an icns element is a PNG (depends on 0-4th byte [header]), > the bytes can be put in a ByteArrayInputStream and then read by ImageIO.read, that returns the BufferedImage needed. > Then it can be added to the list of List in IcnsDecoder#decodeAllImages(). > InputStream in = new ByteArrayInputStream(imageData); > BufferedImage image = ImageIO.read(in); > To the enum IcnsType I added: > ICNS_256x256_32BIT_ARGB_IMAGE("ic08", 256, 256, 32, false), > ICNS_512x512_32BIT_ARGB_IMAGE("ic09", 512, 512, 32, false), > ICNS_1024x1024_32BIT_ARGB_IMAGE("ic10", 1024, 1024, 32, false); > https://en.wikipedia.org/wiki/Apple_Icon_Image_format > No need for Rle24Compression.decompress() or decode32BPPImage(). > I can upload the code somewhere, please tell me how to do. -- This message was sent by Atlassian JIRA (v6.4.14#64029)