请问下:PSDJAVA-321、 PSDJAVA-320,解决修复了?这边产品比较紧急呐,目前产品购买订阅服务等商务事宜就卡了这些问题上面啦,忘尽快给个修复时间结点。谢谢
您能否使用以下选项尝试加载PSD并共享(如果碰巧对您有帮助,还是这两个问题仍然存在问题)。
public static void main(String[] args) throws FileNotFoundException
{
String dataDir = "D:\\PSD\\";
String sourceFileName = dataDir+ "hotelBak.psd";
String exportPath = dataDir+ "hotelBakNew1.png";
PsdLoadOptions loadOptions = new PsdLoadOptions();
//Try this
loadOptions.setLoadEffectsResource(true);
PsdImage image =(PsdImage) Image.load(sourceFileName,loadOptions);
PngOptions options = new PngOptions();
options.setColorType(PngColorType.TruecolorWithAlpha);
image.save(exportPath,options);
}
仍然存在,你们可以直接解析源文件看下效果。
源PSD文件:hotelBak.zip (318.3 KB)
源代码:
public static void main(String[] args) throws FileNotFoundException
{
License license = new License();
String licFileDir = "E:\\mysite\\openproj\\Aspose.PSD-for-Java\\Examples\\src\\main\\resources\\Lic\\Aspose.Total.Product.Family.lic";
license.setLicense(licFileDir);
long startTime = System.currentTimeMillis(); //获取开始时间
String dataDir = "E:\\mysite\\openproj\\Aspose.PSD-for-Java\\Examples\\src\\main\\resources\\PSD\\";
Cache.setCacheFolder(dataDir);
// Set cache on disk.
Cache.setCacheType(CacheType.CacheInMemoryOnly);
// The default cache max value is 0, which means that there is no upper limit
Cache.setMaxMemoryForCache(1073741824); // 1 gigabyte
// We do not recommend that you change the following property because it may greatly affect performance
Cache.setExactReallocateOnly(false);
String sourceFileName = dataDir+ "hotelBak.psd";
String exportPath = dataDir+ "hotelBakNew1.png";
PsdLoadOptions loadOptions = new PsdLoadOptions();
loadOptions.setLoadEffectsResource(true);
PsdImage image =(PsdImage) Image.load(sourceFileName,loadOptions);
PngOptions options = new PngOptions();
options.setCompressionLevel(Compression.NONE.getValue());
options.setColorType(PngColorType.TruecolorWithAlpha);
image.save(exportPath,options);
long endTime = System.currentTimeMillis(); //获取结束时间
System.out.println("程序运行时间:" + (endTime - startTime)/1000 + "s"); //输出程序运行时间
}
运行效果:
hotelBakNew1.jpg (158.6 KB)
最好能给个具体的解决修复时间,或者优先紧急处理下,因为这是apose.psd产品的功能性Bug,说白了,文字样式,竖排格式不支持。麻烦修复后,第一时间邮件回复。此问题直接影响购买服务订单商务合同签订。
您好,请问下,文字竖版的问题,有解决方案了?
麻烦优先解决下文字特效这块:描边、投影、渐变,目前这些都不支持。
1.源代码:
public static void main(String[] args) throws FileNotFoundException
{
License license = new License();
String licFileDir = “E:\mysite\openproj\Aspose.PSD-for-Java\Examples\src\main\resources\Lic\Aspose.Total.Product.Family.lic”;
license.setLicense(licFileDir);
long startTime = System.currentTimeMillis(); //获取开始时间
String dataDir = “E:\mysite\openproj\Aspose.PSD-for-Java\Examples\src\main\resources\PSD\”;
Cache.setCacheFolder(dataDir);
// Set cache on disk.
Cache.setCacheType(CacheType.CacheInMemoryOnly);
// The default cache max value is 0, which means that there is no upper limit
Cache.setMaxMemoryForCache(1073741824); // 1 gigabyte
// We do not recommend that you change the following property because it may greatly affect performance
Cache.setExactReallocateOnly(false);
String sourceFileName = dataDir+ “nvwangJy.psd”;
String exportPath = dataDir+ “nvwangJyNew.png”;
PsdLoadOptions loadOptions = new PsdLoadOptions();
loadOptions.setLoadEffectsResource(true);
PsdImage image =(PsdImage) Image.load(sourceFileName,loadOptions);
PngOptions options = new PngOptions();
options.setCompressionLevel(Compression.NONE.getValue());
options.setColorType(PngColorType.TruecolorWithAlpha);
image.save(exportPath,options);
long endTime = System.currentTimeMillis(); //获取结束时间
System.out.println(“程序运行时间:” + (endTime - startTime)/1000 + “s”); //输出程序运行时间
}
2.实际结果:
nvwangJyNew.7z (780.1 KB)
3.期望结果:
nvwangJy.jpg (301.4 KB)
4.psd源文件:
nvwangJy.zip (2.6 MB)
您好,我想问下,您这边在psd转png的时候,也会有字体格式不识别或者说转为png的时候有乱码的情况吗?但是20.5jar包则不会有这种情况,如截图,我在做转化的时候会有类似问题
识别乱码或者不识别.jpg (162.5 KB)
目前倒没遇到乱码的问题,字体识别,目前貌似可以了,是因我环境的字体未生效导致。
能简单沟通下吗?是如何处理psd转png格式,其中的字体或者空格不乱码的,我们现在遇到一个问题,就是在psd转png的情况下,会有部分字体不识别或者缺失的情况
我想请教一下,您这个字体是如何在系统里生效的,如何导入liunx系统,能帮忙解答下疑惑吗?
01、拷贝字体到指定目录
cp simsun.ttc /usr/share/fonts/
mkfontscale //字体扩展
mkfontdir //新增字体目录
fc-cache -fv //刷新缓存
02、验证字体安装情况
fc-list //"宋体"中文字体已经安装成功