How to create a layered PSD file from using Gimp command line? - gimp

I need to create a layered PSD file from a list of PNG images using the GIMP command line, in which each PNG image is one layer of a generated PSD file. I found one git related to this. It runs successfully without any error, but it didn't create a PSD file at a given location. Is there something I am doing wrong here?

Related

Using Jupyter notebook with LaTex. Images not exported to pdf via LaTex

New to Juypter, trying to use it with Latex. Everything works fine except for the images. I used this tutorial: https://www.youtube.com/watch?v=m3o1KXA1Rjk&t=149s
Png Images are fine in markdown, i.e
But LaTex cannot determine size of png images. If I save the image as pdf I get the same issue. If I save the image as eps then LaTex complains that it cannot convert eps to pdf.
Has anyone had this issue? Anyone know how to solve it?
PNG images always contain the size in pixels.
Optionally, they can include a chunk of data named pHYs. This contains the resolution of the image. If this chuck is present, you should be able to find the actual text pHYs in the file.
If this chunk is missing from the PNG file, the scale of the image can not be found.
If you are on a UNIX-like operating system you could use grep or hexdump to check for the text pHYs in the PNG file. The identify program from the ImageMagick suite also can display the resolution of PNG images.
Note that there is an error in the video. The author first uses latex and then pdflatex three times. That is not a good idea, since they have different capabilities w.r.t. graphics. Stick with pdflatex.

Imagemagick: Identifying when to use sampling-factor for jpeg compression

I am automating conversion of source PNG images to JPEGs of a predefined dimension. For most the images, I don't need to provide the sampling-factor and happy with the output quality and file size. However, a few of the files get heavily distorted with artifacts. For such files, I currently manually provide the option '-sampling-factor 1x1' to get the desired output jpeg, though bigger file size.
Is there an way to identify before hand which PNG src file needs the usage of sampling-factor for conversion? That will help to pull it in the script.

Canvas data Export fabric.js

i want to know that what is the good method to export the data for Canvas with fabric.js,
Let's say, I have four images, 123.ai, 123.eps, 123.svg, 123.jpg. Now while adding on Canvas, with imagemagick I am converting it to png, So all the images will converted to .png extension, and then with .toSvg method I am exporting the Canvas data, So in SVG i am getting the reference path of the png files only, which are converted and added to the canvas. Now Actually while opening in illustrator, SVG takes references of png files instead of original files, So is there any ways I can retain original files while using method .toSvg . So i can direct open in illustrator, While If i make any in .Ai file, so that update would automatically updated in SVG file, if it takes the reference of original files instead of converted png file.
Or is there any way i can use another method?
First of all fabric js is working perfect with illustrator saved file. So if there is any file saved with illustrator in any format will have accurate output in canvas.
Second thing, as you said, that you are also working with SVG files. So it is ideal way to add SVG files to canvas and export canvas to SVG so you will not have any reference to any PNG files. you have smooth and straight forward way that you will add SVG files and export SVG file.

GeoTIFF files in ImageJ

I am trying to open GeoTIFF file in ImageJ. It is opened as blank black image. But I want the view as its JPEG converted image. Please If anyone can help me. I want to process that image for Oil Spill Detection.
I would recommend using the Fiji distribution of ImageJ. It includes the Bio-Formats importer which supports a huge number of image formats. It looks like it has support for GeoTIFF tags, as well.
Also, sometimes images "look" black but aren't truly. See this FAQ entry.

Add layers to a PSD file using ImageMagick

I have a lot of JPEG files and I want to add them as layers to a PSD file using ImageMagick
I found several scripts to do the opposite, extract the layers from a PSD file. I don't want that.
I just want to take several JPEG pictures and add them as layers to a PSD (photoshop) file and name those layers as the JPEG file name. I found a way to create composite images with ImageMagick but all the examples I saw create a PNG or GIF file. I need to create a PSD layered file.
A couple of notes first:
1/ The first layer in a psd file is all the layers merged and you would need to create that first.
2/ For some reason the first layer using the code below drops the first layer e.g image1.png so create a blank layer to use as the first layer.
3/ The layers in my test were renamed to L000001 etc.
The answer to the first part of your question is:
convert image1.png image2.png image3.png
But I do not know how to keep the image names as the layer names

Resources