投稿者「mynote」のアーカイブ

ImageMagickで単色画像を作成する方法

ImageMagickのコマンドラインを使って単色画像を作成する方法を調べてみました。

作り方は次のような感じです。

$ convert -size 100x100 xc:SkyBlue skyblue.png

こんな感じのコマンドで縦100px、横100pxの単色(スカイブルー)画像ファイルを作成できます。

Windows版のImageMagickを使っている場合はコマンドの先頭にmagick.exeを追加してください。

オプションの意味について

-size <画像サイズ>

-sizeで作成したい画像のサイズを指定します。100x100で縦100px、横100pxの意味になります。

xc:<色名>

xcで作成したい画像の色名を指定します。色名の代わりに#778899もしくはrgb(255,127,0)のように数値で指定することもできます。

$ convert -size 100x100 xc:#778899 LightSlateGray.png
$ convert -size 100x100 xc:rgb\(255,127,0\) DarkOrange1.png

※コマンドラインでの括弧()の取り扱いに注意してください。

ファイル名

最後のskyblue.pngの部分が作成したい画像のファイル名です。拡張子部分を変更することで画像ファイルのフォーマットを変更することもできます。

$ convert -size 100x100 xc:SkyBlue skyblue.jpg
$ convert -size 100x100 xc:SkyBlue skyblue.gif

透明の画像ファイル

色名をnoneもしくはtransparentとすることで透明の画像ファイルを作成できます。

$ convert -size 100x100 xc:none transparent.png

PNGの形式を詳細に指定したい場合は次のようにすることもできます。

$ convert -size 100x100 xc:none PNG32:transparent.png
$ convert -size 100x100 xc:none PNG24:transparent.png
$ convert -size 100x100 xc:none PNG8:transparent.png

色名

ImageMagickで使える色名の一覧

名称RGBHEX
snowrgb(255,250,250)#FFFAFA
snow1rgb(255,250,250)#FFFAFA
snow2rgb(238,233,233)#EEE9E9
RosyBrown1rgb(255,193,193)#FFC1C1
RosyBrown2rgb(238,180,180)#EEB4B4
snow3rgb(205,201,201)#CDC9C9
LightCoralrgb(240,128,128)#F08080
IndianRed1rgb(255,106,106)#FF6A6A
RosyBrown3rgb(205,155,155)#CD9B9B
IndianRed2rgb(238,99,99)#EE6363
RosyBrownrgb(188,143,143)#BC8F8F
brown1rgb(255,64,64)#FF4040
firebrick1rgb(255,48,48)#FF3030
brown2rgb(238,59,59)#EE3B3B
IndianRedrgb(205,92,92)#CD5C5C
IndianRed3rgb(205,85,85)#CD5555
firebrick2rgb(238,44,44)#EE2C2C
snow4rgb(139,137,137)#8B8989
brown3rgb(205,51,51)#CD3333
redrgb(255,0,0)#FF0000
red1rgb(255,0,0)#FF0000
RosyBrown4rgb(139,105,105)#8B6969
firebrick3rgb(205,38,38)#CD2626
red2rgb(238,0,0)#EE0000
firebrickrgb(178,34,34)#B22222
brownrgb(165,42,42)#A52A2A
red3rgb(205,0,0)#CD0000
IndianRed4rgb(139,58,58)#8B3A3A
brown4rgb(139,35,35)#8B2323
firebrick4rgb(139,26,26)#8B1A1A
DarkRedrgb(139,0,0)#8B0000
red4rgb(139,0,0)#8B0000
maroonrgb(128,0,0)#800000
LightPink1rgb(255,174,185)#FFAEB9
LightPink3rgb(205,140,149)#CD8C95
LightPink4rgb(139,95,101)#8B5F65
LightPink2rgb(238,162,173)#EEA2AD
LightPinkrgb(255,182,193)#FFB6C1
pinkrgb(255,192,203)#FFC0CB
crimsonrgb(220,20,60)#DC143C
pink1rgb(255,181,197)#FFB5C5
pink2rgb(238,169,184)#EEA9B8
pink3rgb(205,145,158)#CD919E
pink4rgb(139,99,108)#8B636C
PaleVioletRed4rgb(139,71,93)#8B475D
PaleVioletRedrgb(219,112,147)#DB7093
PaleVioletRed2rgb(238,121,159)#EE799F
PaleVioletRed1rgb(255,130,171)#FF82AB
PaleVioletRed3rgb(205,104,137)#CD6889
LavenderBlushrgb(255,240,245)#FFF0F5
LavenderBlush1rgb(255,240,245)#FFF0F5
LavenderBlush3rgb(205,193,197)#CDC1C5
LavenderBlush2rgb(238,224,229)#EEE0E5
LavenderBlush4rgb(139,131,134)#8B8386
maroonrgb(176,48,96)#B03060
HotPink3rgb(205,96,144)#CD6090
VioletRed3rgb(205,50,120)#CD3278
VioletRed1rgb(255,62,150)#FF3E96
VioletRed2rgb(238,58,140)#EE3A8C
VioletRed4rgb(139,34,82)#8B2252
HotPink2rgb(238,106,167)#EE6AA7
HotPink1rgb(255,110,180)#FF6EB4
HotPink4rgb(139,58,98)#8B3A62
HotPinkrgb(255,105,180)#FF69B4
DeepPinkrgb(255,20,147)#FF1493
DeepPink1rgb(255,20,147)#FF1493
DeepPink2rgb(238,18,137)#EE1289
DeepPink3rgb(205,16,118)#CD1076
DeepPink4rgb(139,10,80)#8B0A50
maroon1rgb(255,52,179)#FF34B3
maroon2rgb(238,48,167)#EE30A7
maroon3rgb(205,41,144)#CD2990
maroon4rgb(139,28,98)#8B1C62
MediumVioletRedrgb(199,21,133)#C71585
VioletRedrgb(208,32,144)#D02090
orchid2rgb(238,122,233)#EE7AE9
orchidrgb(218,112,214)#DA70D6
orchid1rgb(255,131,250)#FF83FA
orchid3rgb(205,105,201)#CD69C9
orchid4rgb(139,71,137)#8B4789
thistle1rgb(255,225,255)#FFE1FF
thistle2rgb(238,210,238)#EED2EE
plum1rgb(255,187,255)#FFBBFF
plum2rgb(238,174,238)#EEAEEE
thistlergb(216,191,216)#D8BFD8
thistle3rgb(205,181,205)#CDB5CD
plumrgb(221,160,221)#DDA0DD
violetrgb(238,130,238)#EE82EE
plum3rgb(205,150,205)#CD96CD
thistle4rgb(139,123,139)#8B7B8B
fuchsiargb(255,0,255)#FF00FF
magentargb(255,0,255)#FF00FF
magenta1rgb(255,0,255)#FF00FF
plum4rgb(139,102,139)#8B668B
magenta2rgb(238,0,238)#EE00EE
magenta3rgb(205,0,205)#CD00CD
DarkMagentargb(139,0,139)#8B008B
magenta4rgb(139,0,139)#8B008B
purplergb(128,0,128)#800080
MediumOrchidrgb(186,85,211)#BA55D3
MediumOrchid1rgb(224,102,255)#E066FF
MediumOrchid2rgb(209,95,238)#D15FEE
MediumOrchid3rgb(180,82,205)#B452CD
MediumOrchid4rgb(122,55,139)#7A378B
DarkVioletrgb(148,0,211)#9400D3
DarkOrchidrgb(153,50,204)#9932CC
DarkOrchid1rgb(191,62,255)#BF3EFF
DarkOrchid3rgb(154,50,205)#9A32CD
DarkOrchid2rgb(178,58,238)#B23AEE
DarkOrchid4rgb(104,34,139)#68228B
purplergb(160,32,240)#A020F0
indigorgb(75,0,130)#4B0082
BlueVioletrgb(138,43,226)#8A2BE2
purple2rgb(145,44,238)#912CEE
purple3rgb(125,38,205)#7D26CD
purple4rgb(85,26,139)#551A8B
purple1rgb(155,48,255)#9B30FF
MediumPurplergb(147,112,219)#9370DB
MediumPurple1rgb(171,130,255)#AB82FF
MediumPurple2rgb(159,121,238)#9F79EE
MediumPurple3rgb(137,104,205)#8968CD
MediumPurple4rgb(93,71,139)#5D478B
DarkSlateBluergb(72,61,139)#483D8B
LightSlateBluergb(132,112,255)#8470FF
MediumSlateBluergb(123,104,238)#7B68EE
SlateBluergb(106,90,205)#6A5ACD
SlateBlue1rgb(131,111,255)#836FFF
SlateBlue2rgb(122,103,238)#7A67EE
SlateBlue3rgb(105,89,205)#6959CD
SlateBlue4rgb(71,60,139)#473C8B
GhostWhitergb(248,248,255)#F8F8FF
lavenderrgb(230,230,250)#E6E6FA
bluergb(0,0,255)#0000FF
blue1rgb(0,0,255)#0000FF
blue2rgb(0,0,238)#0000EE
blue3rgb(0,0,205)#0000CD
MediumBluergb(0,0,205)#0000CD
blue4rgb(0,0,139)#00008B
DarkBluergb(0,0,139)#00008B
MidnightBluergb(25,25,112)#191970
navyrgb(0,0,128)#000080
NavyBluergb(0,0,128)#000080
RoyalBluergb(65,105,225)#4169E1
RoyalBlue1rgb(72,118,255)#4876FF
RoyalBlue2rgb(67,110,238)#436EEE
RoyalBlue3rgb(58,95,205)#3A5FCD
RoyalBlue4rgb(39,64,139)#27408B
CornflowerBluergb(100,149,237)#6495ED
LightSteelBluergb(176,196,222)#B0C4DE
LightSteelBlue1rgb(202,225,255)#CAE1FF
LightSteelBlue2rgb(188,210,238)#BCD2EE
LightSteelBlue3rgb(162,181,205)#A2B5CD
LightSteelBlue4rgb(110,123,139)#6E7B8B
SlateGray4rgb(108,123,139)#6C7B8B
SlateGray1rgb(198,226,255)#C6E2FF
SlateGray2rgb(185,211,238)#B9D3EE
SlateGray3rgb(159,182,205)#9FB6CD
LightSlateGrayrgb(119,136,153)#778899
LightSlateGreyrgb(119,136,153)#778899
SlateGrayrgb(112,128,144)#708090
SlateGreyrgb(112,128,144)#708090
DodgerBluergb(30,144,255)#1E90FF
DodgerBlue1rgb(30,144,255)#1E90FF
DodgerBlue2rgb(28,134,238)#1C86EE
DodgerBlue4rgb(16,78,139)#104E8B
DodgerBlue3rgb(24,116,205)#1874CD
AliceBluergb(240,248,255)#F0F8FF
SteelBlue4rgb(54,100,139)#36648B
SteelBluergb(70,130,180)#4682B4
SteelBlue1rgb(99,184,255)#63B8FF
SteelBlue2rgb(92,172,238)#5CACEE
SteelBlue3rgb(79,148,205)#4F94CD
SkyBlue4rgb(74,112,139)#4A708B
SkyBlue1rgb(135,206,255)#87CEFF
SkyBlue2rgb(126,192,238)#7EC0EE
SkyBlue3rgb(108,166,205)#6CA6CD
LightSkyBluergb(135,206,250)#87CEFA
LightSkyBlue4rgb(96,123,139)#607B8B
LightSkyBlue1rgb(176,226,255)#B0E2FF
LightSkyBlue2rgb(164,211,238)#A4D3EE
LightSkyBlue3rgb(141,182,205)#8DB6CD
SkyBluergb(135,206,235)#87CEEB
LightBlue3rgb(154,192,205)#9AC0CD
DeepSkyBluergb(0,191,255)#00BFFF
DeepSkyBlue1rgb(0,191,255)#00BFFF
DeepSkyBlue2rgb(0,178,238)#00B2EE
DeepSkyBlue4rgb(0,104,139)#00688B
DeepSkyBlue3rgb(0,154,205)#009ACD
LightBlue1rgb(191,239,255)#BFEFFF
LightBlue2rgb(178,223,238)#B2DFEE
LightBluergb(173,216,230)#ADD8E6
LightBlue4rgb(104,131,139)#68838B
PowderBluergb(176,224,230)#B0E0E6
CadetBlue1rgb(152,245,255)#98F5FF
CadetBlue2rgb(142,229,238)#8EE5EE
CadetBlue3rgb(122,197,205)#7AC5CD
CadetBlue4rgb(83,134,139)#53868B
turquoise1rgb(0,245,255)#00F5FF
turquoise2rgb(0,229,238)#00E5EE
turquoise3rgb(0,197,205)#00C5CD
turquoise4rgb(0,134,139)#00868B
cadet bluergb(95,158,160)#5F9EA0
CadetBluergb(95,158,160)#5F9EA0
DarkTurquoisergb(0,206,209)#00CED1
azurergb(240,255,255)#F0FFFF
azure1rgb(240,255,255)#F0FFFF
LightCyanrgb(224,255,255)#E0FFFF
LightCyan1rgb(224,255,255)#E0FFFF
azure2rgb(224,238,238)#E0EEEE
LightCyan2rgb(209,238,238)#D1EEEE
PaleTurquoise1rgb(187,255,255)#BBFFFF
PaleTurquoisergb(175,238,238)#AFEEEE
PaleTurquoise2rgb(174,238,238)#AEEEEE
DarkSlateGray1rgb(151,255,255)#97FFFF
azure3rgb(193,205,205)#C1CDCD
LightCyan3rgb(180,205,205)#B4CDCD
DarkSlateGray2rgb(141,238,238)#8DEEEE
PaleTurquoise3rgb(150,205,205)#96CDCD
DarkSlateGray3rgb(121,205,205)#79CDCD
azure4rgb(131,139,139)#838B8B
LightCyan4rgb(122,139,139)#7A8B8B
aquargb(0,255,255)#00FFFF
cyanrgb(0,255,255)#00FFFF
cyan1rgb(0,255,255)#00FFFF
PaleTurquoise4rgb(102,139,139)#668B8B
cyan2rgb(0,238,238)#00EEEE
DarkSlateGray4rgb(82,139,139)#528B8B
cyan3rgb(0,205,205)#00CDCD
cyan4rgb(0,139,139)#008B8B
DarkCyanrgb(0,139,139)#008B8B
tealrgb(0,128,128)#008080
DarkSlateGrayrgb(47,79,79)#2F4F4F
DarkSlateGreyrgb(47,79,79)#2F4F4F
MediumTurquoisergb(72,209,204)#48D1CC
LightSeaGreenrgb(32,178,170)#20B2AA
turquoisergb(64,224,208)#40E0D0
aquamarine4rgb(69,139,116)#458B74
aquamarinergb(127,255,212)#7FFFD4
aquamarine1rgb(127,255,212)#7FFFD4
aquamarine2rgb(118,238,198)#76EEC6
aquamarine3rgb(102,205,170)#66CDAA
MediumAquamarinergb(102,205,170)#66CDAA
MediumSpringGreenrgb(0,250,154)#00FA9A
MintCreamrgb(245,255,250)#F5FFFA
SpringGreenrgb(0,255,127)#00FF7F
SpringGreen1rgb(0,255,127)#00FF7F
SpringGreen2rgb(0,238,118)#00EE76
SpringGreen3rgb(0,205,102)#00CD66
SpringGreen4rgb(0,139,69)#008B45
MediumSeaGreenrgb(60,179,113)#3CB371
SeaGreenrgb(46,139,87)#2E8B57
SeaGreen3rgb(67,205,128)#43CD80
SeaGreen1rgb(84,255,159)#54FF9F
SeaGreen4rgb(46,139,87)#2E8B57
SeaGreen2rgb(78,238,148)#4EEE94
MediumForestGreenrgb(50,129,75)#32814B
honeydewrgb(240,255,240)#F0FFF0
honeydew1rgb(240,255,240)#F0FFF0
honeydew2rgb(224,238,224)#E0EEE0
DarkSeaGreen1rgb(193,255,193)#C1FFC1
DarkSeaGreen2rgb(180,238,180)#B4EEB4
PaleGreen1rgb(154,255,154)#9AFF9A
PaleGreenrgb(152,251,152)#98FB98
honeydew3rgb(193,205,193)#C1CDC1
LightGreenrgb(144,238,144)#90EE90
PaleGreen2rgb(144,238,144)#90EE90
DarkSeaGreen3rgb(155,205,155)#9BCD9B
DarkSeaGreenrgb(143,188,143)#8FBC8F
PaleGreen3rgb(124,205,124)#7CCD7C
honeydew4rgb(131,139,131)#838B83
green1rgb(0,255,0)#00FF00
limergb(0,255,0)#00FF00
LimeGreenrgb(50,205,50)#32CD32
DarkSeaGreen4rgb(105,139,105)#698B69
green2rgb(0,238,0)#00EE00
PaleGreen4rgb(84,139,84)#548B54
green3rgb(0,205,0)#00CD00
ForestGreenrgb(34,139,34)#228B22
green4rgb(0,139,0)#008B00
greenrgb(0,128,0)#008000
DarkGreenrgb(0,100,0)#006400
LawnGreenrgb(124,252,0)#7CFC00
chartreusergb(127,255,0)#7FFF00
chartreuse1rgb(127,255,0)#7FFF00
chartreuse2rgb(118,238,0)#76EE00
chartreuse3rgb(102,205,0)#66CD00
chartreuse4rgb(69,139,0)#458B00
GreenYellowrgb(173,255,47)#ADFF2F
DarkOliveGreen3rgb(162,205,90)#A2CD5A
DarkOliveGreen1rgb(202,255,112)#CAFF70
DarkOliveGreen2rgb(188,238,104)#BCEE68
DarkOliveGreen4rgb(110,139,61)#6E8B3D
DarkOliveGreenrgb(85,107,47)#556B2F
OliveDrabrgb(107,142,35)#6B8E23
OliveDrab1rgb(192,255,62)#C0FF3E
OliveDrab2rgb(179,238,58)#B3EE3A
OliveDrab3rgb(154,205,50)#9ACD32
YellowGreenrgb(154,205,50)#9ACD32
OliveDrab4rgb(105,139,34)#698B22
ivoryrgb(255,255,240)#FFFFF0
ivory1rgb(255,255,240)#FFFFF0
LightYellowrgb(255,255,224)#FFFFE0
LightYellow1rgb(255,255,224)#FFFFE0
beigergb(245,245,220)#F5F5DC
ivory2rgb(238,238,224)#EEEEE0
LightGoldenrodYellowrgb(250,250,210)#FAFAD2
LightYellow2rgb(238,238,209)#EEEED1
ivory3rgb(205,205,193)#CDCDC1
LightYellow3rgb(205,205,180)#CDCDB4
ivory4rgb(139,139,131)#8B8B83
LightYellow4rgb(139,139,122)#8B8B7A
yellowrgb(255,255,0)#FFFF00
yellow1rgb(255,255,0)#FFFF00
yellow2rgb(238,238,0)#EEEE00
yellow3rgb(205,205,0)#CDCD00
yellow4rgb(139,139,0)#8B8B00
olivergb(128,128,0)#808000
DarkKhakirgb(189,183,107)#BDB76B
khaki2rgb(238,230,133)#EEE685
LemonChiffon4rgb(139,137,112)#8B8970
khaki1rgb(255,246,143)#FFF68F
khaki3rgb(205,198,115)#CDC673
khaki4rgb(139,134,78)#8B864E
PaleGoldenrodrgb(238,232,170)#EEE8AA
LemonChiffonrgb(255,250,205)#FFFACD
LemonChiffon1rgb(255,250,205)#FFFACD
khakirgb(240,230,140)#F0E68C
LemonChiffon3rgb(205,201,165)#CDC9A5
LemonChiffon2rgb(238,233,191)#EEE9BF
MediumGoldenRodrgb(209,193,102)#D1C166
cornsilk4rgb(139,136,120)#8B8878
goldrgb(255,215,0)#FFD700
gold1rgb(255,215,0)#FFD700
gold2rgb(238,201,0)#EEC900
gold3rgb(205,173,0)#CDAD00
gold4rgb(139,117,0)#8B7500
LightGoldenrodrgb(238,221,130)#EEDD82
LightGoldenrod4rgb(139,129,76)#8B814C
LightGoldenrod1rgb(255,236,139)#FFEC8B
LightGoldenrod3rgb(205,190,112)#CDBE70
LightGoldenrod2rgb(238,220,130)#EEDC82
cornsilk3rgb(205,200,177)#CDC8B1
cornsilk2rgb(238,232,205)#EEE8CD
cornsilkrgb(255,248,220)#FFF8DC
cornsilk1rgb(255,248,220)#FFF8DC
goldenrodrgb(218,165,32)#DAA520
goldenrod1rgb(255,193,37)#FFC125
goldenrod2rgb(238,180,34)#EEB422
goldenrod3rgb(205,155,29)#CD9B1D
goldenrod4rgb(139,105,20)#8B6914
DarkGoldenrodrgb(184,134,11)#B8860B
DarkGoldenrod1rgb(255,185,15)#FFB90F
DarkGoldenrod2rgb(238,173,14)#EEAD0E
DarkGoldenrod3rgb(205,149,12)#CD950C
DarkGoldenrod4rgb(139,101,8)#8B6508
FloralWhitergb(255,250,240)#FFFAF0
wheat2rgb(238,216,174)#EED8AE
OldLacergb(253,245,230)#FDF5E6
wheatrgb(245,222,179)#F5DEB3
wheat1rgb(255,231,186)#FFE7BA
wheat3rgb(205,186,150)#CDBA96
orangergb(255,165,0)#FFA500
orange1rgb(255,165,0)#FFA500
orange2rgb(238,154,0)#EE9A00
orange3rgb(205,133,0)#CD8500
orange4rgb(139,90,0)#8B5A00
wheat4rgb(139,126,102)#8B7E66
moccasinrgb(255,228,181)#FFE4B5
PapayaWhiprgb(255,239,213)#FFEFD5
NavajoWhite3rgb(205,179,139)#CDB38B
BlanchedAlmondrgb(255,235,205)#FFEBCD
NavajoWhitergb(255,222,173)#FFDEAD
NavajoWhite1rgb(255,222,173)#FFDEAD
NavajoWhite2rgb(238,207,161)#EECFA1
NavajoWhite4rgb(139,121,94)#8B795E
AntiqueWhite4rgb(139,131,120)#8B8378
AntiqueWhitergb(250,235,215)#FAEBD7
tanrgb(210,180,140)#D2B48C
bisque4rgb(139,125,107)#8B7D6B
burlywoodrgb(222,184,135)#DEB887
AntiqueWhite2rgb(238,223,204)#EEDFCC
burlywood1rgb(255,211,155)#FFD39B
burlywood3rgb(205,170,125)#CDAA7D
burlywood2rgb(238,197,145)#EEC591
AntiqueWhite1rgb(255,239,219)#FFEFDB
burlywood4rgb(139,115,85)#8B7355
AntiqueWhite3rgb(205,192,176)#CDC0B0
DarkOrangergb(255,140,0)#FF8C00
bisque2rgb(238,213,183)#EED5B7
bisquergb(255,228,196)#FFE4C4
bisque1rgb(255,228,196)#FFE4C4
bisque3rgb(205,183,158)#CDB79E
DarkOrange1rgb(255,127,0)#FF7F00
linenrgb(250,240,230)#FAF0E6
DarkOrange2rgb(238,118,0)#EE7600
DarkOrange3rgb(205,102,0)#CD6600
DarkOrange4rgb(139,69,0)#8B4500
perurgb(205,133,63)#CD853F
tan1rgb(255,165,79)#FFA54F
tan2rgb(238,154,73)#EE9A49
tan3rgb(205,133,63)#CD853F
tan4rgb(139,90,43)#8B5A2B
PeachPuffrgb(255,218,185)#FFDAB9
PeachPuff1rgb(255,218,185)#FFDAB9
PeachPuff4rgb(139,119,101)#8B7765
PeachPuff2rgb(238,203,173)#EECBAD
PeachPuff3rgb(205,175,149)#CDAF95
SandyBrownrgb(244,164,96)#F4A460
seashell4rgb(139,134,130)#8B8682
seashell2rgb(238,229,222)#EEE5DE
seashell3rgb(205,197,191)#CDC5BF
chocolatergb(210,105,30)#D2691E
chocolate1rgb(255,127,36)#FF7F24
chocolate2rgb(238,118,33)#EE7621
chocolate3rgb(205,102,29)#CD661D
chocolate4rgb(139,69,19)#8B4513
SaddleBrownrgb(139,69,19)#8B4513
seashellrgb(255,245,238)#FFF5EE
seashell1rgb(255,245,238)#FFF5EE
sienna4rgb(139,71,38)#8B4726
siennargb(160,82,45)#A0522D
sienna1rgb(255,130,71)#FF8247
sienna2rgb(238,121,66)#EE7942
sienna3rgb(205,104,57)#CD6839
LightSalmon3rgb(205,129,98)#CD8162
LightSalmonrgb(255,160,122)#FFA07A
LightSalmon1rgb(255,160,122)#FFA07A
LightSalmon4rgb(139,87,66)#8B5742
LightSalmon2rgb(238,149,114)#EE9572
coralrgb(255,127,80)#FF7F50
OrangeRedrgb(255,69,0)#FF4500
OrangeRed1rgb(255,69,0)#FF4500
OrangeRed2rgb(238,64,0)#EE4000
OrangeRed3rgb(205,55,0)#CD3700
OrangeRed4rgb(139,37,0)#8B2500
DarkSalmonrgb(233,150,122)#E9967A
salmon1rgb(255,140,105)#FF8C69
salmon2rgb(238,130,98)#EE8262
salmon3rgb(205,112,84)#CD7054
salmon4rgb(139,76,57)#8B4C39
coral1rgb(255,114,86)#FF7256
coral2rgb(238,106,80)#EE6A50
coral3rgb(205,91,69)#CD5B45
coral4rgb(139,62,47)#8B3E2F
tomato4rgb(139,54,38)#8B3626
tomatorgb(255,99,71)#FF6347
tomato1rgb(255,99,71)#FF6347
tomato2rgb(238,92,66)#EE5C42
tomato3rgb(205,79,57)#CD4F39
MistyRose4rgb(139,125,123)#8B7D7B
MistyRose2rgb(238,213,210)#EED5D2
MistyRosergb(255,228,225)#FFE4E1
MistyRose1rgb(255,228,225)#FFE4E1
salmonrgb(250,128,114)#FA8072
MistyRose3rgb(205,183,181)#CDB7B5
whitergb(255,255,255)#FFFFFF
gray100rgb(255,255,255)#FFFFFF
grey100rgb(255,255,255)#FFFFFF
grey100rgb(255,255,255)#FFFFFF
gray99rgb(252,252,252)#FCFCFC
grey99rgb(252,252,252)#FCFCFC
gray98rgb(250,250,250)#FAFAFA
grey98rgb(250,250,250)#FAFAFA
gray97rgb(247,247,247)#F7F7F7
grey97rgb(247,247,247)#F7F7F7
gray96rgb(245,245,245)#F5F5F5
grey96rgb(245,245,245)#F5F5F5
WhiteSmokergb(245,245,245)#F5F5F5
gray95rgb(242,242,242)#F2F2F2
grey95rgb(242,242,242)#F2F2F2
gray94rgb(240,240,240)#F0F0F0
grey94rgb(240,240,240)#F0F0F0
gray93rgb(237,237,237)#EDEDED
grey93rgb(237,237,237)#EDEDED
gray92rgb(235,235,235)#EBEBEB
grey92rgb(235,235,235)#EBEBEB
gray91rgb(232,232,232)#E8E8E8
grey91rgb(232,232,232)#E8E8E8
gray90rgb(229,229,229)#E5E5E5
grey90rgb(229,229,229)#E5E5E5
gray89rgb(227,227,227)#E3E3E3
grey89rgb(227,227,227)#E3E3E3
gray88rgb(224,224,224)#E0E0E0
grey88rgb(224,224,224)#E0E0E0
gray87rgb(222,222,222)#DEDEDE
grey87rgb(222,222,222)#DEDEDE
gainsbororgb(220,220,220)#DCDCDC
gray86rgb(219,219,219)#DBDBDB
grey86rgb(219,219,219)#DBDBDB
gray85rgb(217,217,217)#D9D9D9
grey85rgb(217,217,217)#D9D9D9
gray84rgb(214,214,214)#D6D6D6
grey84rgb(214,214,214)#D6D6D6
gray83rgb(212,212,212)#D4D4D4
grey83rgb(212,212,212)#D4D4D4
LightGrayrgb(211,211,211)#D3D3D3
LightGreyrgb(211,211,211)#D3D3D3
gray82rgb(209,209,209)#D1D1D1
grey82rgb(209,209,209)#D1D1D1
gray81rgb(207,207,207)#CFCFCF
grey81rgb(207,207,207)#CFCFCF
gray80rgb(204,204,204)#CCCCCC
grey80rgb(204,204,204)#CCCCCC
gray79rgb(201,201,201)#C9C9C9
grey79rgb(201,201,201)#C9C9C9
gray78rgb(199,199,199)#C7C7C7
grey78rgb(199,199,199)#C7C7C7
gray77rgb(196,196,196)#C4C4C4
grey77rgb(196,196,196)#C4C4C4
gray76rgb(194,194,194)#C2C2C2
grey76rgb(194,194,194)#C2C2C2
silverrgb(192,192,192)#C0C0C0
gray75rgb(191,191,191)#BFBFBF
grey75rgb(191,191,191)#BFBFBF
gray74rgb(189,189,189)#BDBDBD
grey74rgb(189,189,189)#BDBDBD
gray73rgb(186,186,186)#BABABA
grey73rgb(186,186,186)#BABABA
gray72rgb(184,184,184)#B8B8B8
grey72rgb(184,184,184)#B8B8B8
gray71rgb(181,181,181)#B5B5B5
grey71rgb(181,181,181)#B5B5B5
gray70rgb(179,179,179)#B3B3B3
grey70rgb(179,179,179)#B3B3B3
gray69rgb(176,176,176)#B0B0B0
grey69rgb(176,176,176)#B0B0B0
gray68rgb(173,173,173)#ADADAD
grey68rgb(173,173,173)#ADADAD
gray67rgb(171,171,171)#ABABAB
grey67rgb(171,171,171)#ABABAB
DarkGrayrgb(169,169,169)#A9A9A9
DarkGreyrgb(169,169,169)#A9A9A9
gray66rgb(168,168,168)#A8A8A8
grey66rgb(168,168,168)#A8A8A8
gray65rgb(166,166,166)#A6A6A6
grey65rgb(166,166,166)#A6A6A6
gray64rgb(163,163,163)#A3A3A3
grey64rgb(163,163,163)#A3A3A3
gray63rgb(161,161,161)#A1A1A1
grey63rgb(161,161,161)#A1A1A1
gray62rgb(158,158,158)#9E9E9E
grey62rgb(158,158,158)#9E9E9E
gray61rgb(156,156,156)#9C9C9C
grey61rgb(156,156,156)#9C9C9C
gray60rgb(153,153,153)#999999
grey60rgb(153,153,153)#999999
gray59rgb(150,150,150)#969696
grey59rgb(150,150,150)#969696
gray58rgb(148,148,148)#949494
grey58rgb(148,148,148)#949494
gray57rgb(145,145,145)#919191
grey57rgb(145,145,145)#919191
gray56rgb(143,143,143)#8F8F8F
grey56rgb(143,143,143)#8F8F8F
gray55rgb(140,140,140)#8C8C8C
grey55rgb(140,140,140)#8C8C8C
gray54rgb(138,138,138)#8A8A8A
grey54rgb(138,138,138)#8A8A8A
gray53rgb(135,135,135)#878787
grey53rgb(135,135,135)#878787
gray52rgb(133,133,133)#858585
grey52rgb(133,133,133)#858585
gray51rgb(130,130,130)#828282
grey51rgb(130,130,130)#828282
fractalrgb(128,128,128)#808080
gray50rgb(127,127,127)#7F7F7F
grey50rgb(127,127,127)#7F7F7F
grayrgb(126,126,126)#7E7E7E
gray49rgb(125,125,125)#7D7D7D
grey49rgb(125,125,125)#7D7D7D
gray48rgb(122,122,122)#7A7A7A
grey48rgb(122,122,122)#7A7A7A
gray47rgb(120,120,120)#787878
grey47rgb(120,120,120)#787878
gray46rgb(117,117,117)#757575
grey46rgb(117,117,117)#757575
gray45rgb(115,115,115)#737373
grey45rgb(115,115,115)#737373
gray44rgb(112,112,112)#707070
grey44rgb(112,112,112)#707070
gray43rgb(110,110,110)#6E6E6E
grey43rgb(110,110,110)#6E6E6E
gray42rgb(107,107,107)#6B6B6B
grey42rgb(107,107,107)#6B6B6B
DimGrayrgb(105,105,105)#696969
DimGreyrgb(105,105,105)#696969
gray41rgb(105,105,105)#696969
grey41rgb(105,105,105)#696969
gray40rgb(102,102,102)#666666
grey40rgb(102,102,102)#666666
gray39rgb(99,99,99)#636363
grey39rgb(99,99,99)#636363
gray38rgb(97,97,97)#616161
grey38rgb(97,97,97)#616161
gray37rgb(94,94,94)#5E5E5E
grey37rgb(94,94,94)#5E5E5E
gray36rgb(92,92,92)#5C5C5C
grey36rgb(92,92,92)#5C5C5C
gray35rgb(89,89,89)#595959
grey35rgb(89,89,89)#595959
gray34rgb(87,87,87)#575757
grey34rgb(87,87,87)#575757
gray33rgb(84,84,84)#545454
grey33rgb(84,84,84)#545454
gray32rgb(82,82,82)#525252
grey32rgb(82,82,82)#525252
gray31rgb(79,79,79)#4F4F4F
grey31rgb(79,79,79)#4F4F4F
gray30rgb(77,77,77)#4D4D4D
grey30rgb(77,77,77)#4D4D4D
gray29rgb(74,74,74)#4A4A4A
grey29rgb(74,74,74)#4A4A4A
gray28rgb(71,71,71)#474747
grey28rgb(71,71,71)#474747
gray27rgb(69,69,69)#454545
grey27rgb(69,69,69)#454545
gray26rgb(66,66,66)#424242
grey26rgb(66,66,66)#424242
gray25rgb(64,64,64)#404040
grey25rgb(64,64,64)#404040
gray24rgb(61,61,61)#3D3D3D
grey24rgb(61,61,61)#3D3D3D
gray23rgb(59,59,59)#3B3B3B
grey23rgb(59,59,59)#3B3B3B
gray22rgb(56,56,56)#383838
grey22rgb(56,56,56)#383838
gray21rgb(54,54,54)#363636
grey21rgb(54,54,54)#363636
gray20rgb(51,51,51)#333333
grey20rgb(51,51,51)#333333
gray19rgb(48,48,48)#303030
grey19rgb(48,48,48)#303030
gray18rgb(46,46,46)#2E2E2E
grey18rgb(46,46,46)#2E2E2E
gray17rgb(43,43,43)#2B2B2B
grey17rgb(43,43,43)#2B2B2B
gray16rgb(41,41,41)#292929
grey16rgb(41,41,41)#292929
gray15rgb(38,38,38)#262626
grey15rgb(38,38,38)#262626
gray14rgb(36,36,36)#242424
grey14rgb(36,36,36)#242424
gray13rgb(33,33,33)#212121
grey13rgb(33,33,33)#212121
gray12rgb(31,31,31)#1F1F1F
grey12rgb(31,31,31)#1F1F1F
gray11rgb(28,28,28)#1C1C1C
grey11rgb(28,28,28)#1C1C1C
gray10rgb(26,26,26)#1A1A1A
grey10rgb(26,26,26)#1A1A1A
gray9rgb(23,23,23)#171717
grey9rgb(23,23,23)#171717
gray8rgb(20,20,20)#141414
grey8rgb(20,20,20)#141414
gray7rgb(18,18,18)#121212
grey7rgb(18,18,18)#121212
gray6rgb(15,15,15)#0F0F0F
grey6rgb(15,15,15)#0F0F0F
gray5rgb(13,13,13)#0D0D0D
grey5rgb(13,13,13)#0D0D0D
gray4rgb(10,10,10)#0A0A0A
grey4rgb(10,10,10)#0A0A0A
gray3rgb(8,8,8)#080808
grey3rgb(8,8,8)#080808
gray2rgb(5,5,5)#050505
grey2rgb(5,5,5)#050505
gray1rgb(3,3,3)#030303
grey1rgb(3,3,3)#030303
blackrgb(0,0,0)#000000
gray0rgb(0,0,0)#000000
grey0rgb(0,0,0)#000000
opaquergb(0,0,0)#000000
nonergba(0,0,0,0.0)#00000000
transparentrgba(0,0,0,0.0)#00000000

SystemRescue(Linux)でsshdとかSambaを使う方法

USBメモリーで動作するLinuxディストリビューション「SystemRescue」でSSHとSambaのサーバーを起動する手順についての解説。

SSH

sshdはデフォルトで起動しています。
ただ、パスワードが設定されていないのでpasswdを使って設定する必要があります。

# passwd root
New password:
Retype new password:
passwd: password updated successfully

これでrootでログインして使えるようになります。

sshd_configの変更をした場合など、sshdを再起動したい場合は下記コマンドで再起動してください。

# /etc/init.d/sshd restart

Samba

Sambaはデフォルトでは起動していません。
とりあえずゲストユーザーで読み書きできるようにするには以下のような感じで設定をします。

# mkdir /mnt/samba
# chown nobody:nogroup /mnt/samba
# chmod 777 -R /mnt/samba
# cp /etc/samba/smb.conf.default /etc/samba/smb.conf
# vi /etc/samba/smb.conf
# /etc/init.d/samba start

smb.confの書き方については以前の記事(sambaの使い方メモ)が参考になるかと思います。

Gitの差分をMeldで表示する方法

Gitの差分をMeldで表示したい場合は、.gitconfig

[diff]
  guitool = meld

[difftool "meld"]
  cmd = meld $LOCAL $REMOTE

を追加して、git diffの代わりにgit difftool -dのコマンドを実行してみると表示できるようになります。

マージもMeldでできるみたいですがまだ試したことがないので、こちらは機会があれば記事を更新しようと思います。

リンク

Meld
https://meldmerge.org/