简体   繁体   English

Java从JPEG保存RAW格式的图像或类似的图像而不加载其全部内容

[英]java save an image in RAW format or so from a JPEG without loading its full contents

I was wondering if it is possible to load a huge JPEG ( see my previous question there ) and save it / use it in a quickly-loadable format, without loading its fully decoded contents into memory. 我想知道是否可以加载巨大的JPEG( 请参阅我的上一个问题 )并保存/以可快速加载的格式使用它,而无需将其完全解码的内容加载到内存中。

The main idea is to have a file format (or a function I'm not aware of which would do that natively in Java) allowing to load dynamically a given area of the image, without loading 800MB of data. 主要思想是拥有一种文件格式(或者我不知道哪个函数会在Java中原生执行该功能),从而允许动态加载图像的给定区域,而无需加载800MB数据。

I'm actually using a tiling algorithm to render the image, but it needs to load the full image (thanks to mKorbel and Gerard Le Blanc), but this "preloading" step remains quite long. 我实际上是在使用切片算法来渲染图像,但是它需要加载完整图像(由于mKorbel和Gerard Le Blanc),但是此“预加载”步骤仍然很长。

I don't figure out how to do that (and first of all, is it possible ?), since Google did not help me a lot (maybe bad-english searching ?) 我不知道该怎么做(首先,有可能吗?),因为Google并没有给我很大的帮助(也许搜索效果不好)?

I found what I needed there : 我在那里找到了我需要的东西:

very large image manipulation and tiling 非常大的图像处理和平铺

The Java JAI lib has a lot of features to handle these kind of problems, and is supported by Oracle, which means it is (theoretically) stable and sustainable. Java JAI库具有许多可处理此类问题的功能,并且受到Oracle的支持,这意味着(理论上)它是稳定且可持续的。

Thanks to @BryanD ! 感谢@BryanD!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM