Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
10
votes
1
answers
10995
views
overlay an image
I have two photos ( 1.jpg and 2.jpg) I want to make photo 2.jpg as a background and photo 1.jpg red colored overlay and I want the output to be like photo 3.jpg as follow ( I want to put photo number 1 on top of photo number 2 and make it transparent 50%): **Photo 1.jpg ( overlay)** [


user88036
Nov 16, 2015, 10:04 PM
• Last activity: Mar 17, 2024, 03:20 PM
3
votes
1
answers
1653
views
Create an ARGB struct for C header from a PNG
I need to update a logo bitmap to an updated logo. The existing code uses a C header which is loaded via ` XChangeProperty`. I have looked into imagemagick and the Gimp in order to convert the updated png I have into a suitable header. Gimp even said 'export a C header' (or something like it) but th...
I need to update a logo bitmap to an updated logo. The existing code uses a C header which is loaded via
XChangeProperty
.
I have looked into imagemagick and the Gimp in order to convert the updated png I have into a suitable header. Gimp even said 'export a C header' (or something like it) but the result did not resemble the existing format.
How do I go (preferably on the command-line) from a png to a suitable header file?
*Edit:* Expanding the question a little, the (now out of date) logo I would like to replace is [in this file](https://github.com/wch/r-source/blob/trunk/src/modules/X11/rlogo_icon.h) and [gets used here](https://github.com/wch/r-source/blob/trunk/src/modules/X11/devX11.c#L1604-L1609) .
Dirk Eddelbuettel
(221 rep)
Jul 30, 2015, 05:03 PM
• Last activity: Jul 31, 2015, 05:45 PM
2
votes
1
answers
751
views
ImageMagick vs GraphicMagick: How to move image
So, I have a bunch of files that I use as the basis for my wallpapers. Using [ImageMagick][1], I can convert then using: convert \ -resize '1920x1080>' \ -extent 1920x1080 \ -background '#000000' \ -gravity SouthEast \ $file $dir/$file So that the image is moved to the lower right area of the screen...
So, I have a bunch of files that I use as the basis for my wallpapers. Using ImageMagick , I can convert then using:
convert \
-resize '1920x1080>' \
-extent 1920x1080 \
-background '#000000' \
-gravity SouthEast \
$file $dir/$file
So that the image is moved to the lower right area of the screen. This area has little or no windows thus I can actually see the wallpapper. The reason I do this is that some of the images are bigger than my monitor and thus need rescaling instead of just putting there.
However, using GraphicMagick with the above command, results in the image being moved towards the upper right corner!
*How can I achieve a similar effect with GraphicMagick ?*
For an example, this is one of the post processed images:

Sardathrion - against SE abuse
(4493 rep)
Dec 2, 2014, 09:26 AM
• Last activity: Dec 2, 2014, 02:32 PM
Showing page 1 of 3 total questions