[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Successor to CentOS] AlmaLinux OS server construction/migration service

[Successor to CentOS] AlmaLinux OS server construction/migration service

[For WordPress only] Cloud server “Web Speed”

[For WordPress only] Cloud server “Web Speed”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Reservation system development] EDISONE customization development service

[Reservation system development] EDISONE customization development service

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[Global exclusive service] Beyond's MSP in North America and China

[Global exclusive service] Beyond's MSP in North America and China

[YouTube] Beyond official channel “Biyomaru Channel”

[YouTube] Beyond official channel “Biyomaru Channel”

Great success at TGS2016! I'll show you behind the scenes of the photo article.

Hello.
I'm Mandai, in charge of Wild on the development team.

This is a little while ago, but this year we exhibited as Beyond at the Business Day of TGS2016.
It was a great success, and we would like to thank the many people who visited our booth.

During this time, what I was doing was something like this

When I tried to upload a large number of images that I had purchased, I ran into a file size limit (I borrowed my wife's SLR, so the image quality was unnecessarily good), and after wondering what to do, I decided to upload it like an engineer. The purpose of this article is to quickly resolve the issue.

Of course, I inserted a separately prepared special SD card into my wife's digital camera, and for the safety of my family, I deployed it within the company and deleted it before it became a source of conflict.
This is the age of information society (?)!

Speaking of resizing

This time, I've done so much good work that I have over 200 photos, so the first hurdle is figuring out how to display them on the blog.

Are you trying to become a Photoshop expert by resizing images one by one in Photoshop or whatever? So, it's all a matter of batch conversion using ImageMagick.

Fortunately, my home PC is Ubuntu, so I have ImageMagick installed.

But it's 2am.

But everyone is asleep.

But I have to work tomorrow too.

But, but... I have no choice but to do it.

So, I started working slowly.

 

The basics of basics, resizing

When you install ImageMagick, several commands are installed, but this time we will use the convert command to resize images.

here is the image information before use .

When you look at the image information using the identify command, it looks like the following.

identify kakkoii.jpg kakkoii.jpg JPEG 4288x2848 4288x2848+0+0 8-bit DirectClass 5.817MB 0.000u 0:00.000

As expected of a single-lens reflex camera. You can take nice, detailed photos.

Well, it's an old man holding a gun.

It has a width of 4288 pixels, so it is not suitable for web use.
You can't display it at full size unless it's at most 1/4 of the size, 1244 pixels, so viewing it with a browser is a waste of packets.

Considering the layout of the homepage, I think it would be a good idea to reduce the size to 20% this time.

Based on this content, I will try to convert it at once.

convert kakkoii.jpg -geometry 20% t1.jpg

There are several ways to change the size with the convert command, such as using the -geometry option like this time, and using the -resize option.

If you use the -resize option, it will look like the one below.

convert kakkoii.jpg -resize 20% t2.jpg

The location and format of options are the same.
When it comes to resizing, I feel like the -resize option is more intuitive and easier to remember.

Let's take a look at the information on images created using each method.

identify t1.jpg t1.jpg JPEG 858x570 858x570+0+0 8-bit DirectClass 426KB 0.000u 0:00.000 identify t2.jpg t2.jpg JPEG 858x570 858x570+0+0 8-bit DirectClass 426KB 0.000u 0:00.00 9

It's exactly the same.
In fact, they are exactly the same size. Even if I run the cmp command, there is no difference.

I'm a little off track, but if you loop the convert command above and apply it to all the files in the directory, you'll have image data for your blog ready in no time.

By the way, in terms of batch conversion, there is also the mogrify command, but since this only rewrites the original data, I did not use it this time.

When converting in batch with mogrify, it will be as follows.

ls -al total 28448 drwxrwxr-x 2 vagrant vagrant 4096 Oct 4 17:31 . drwxrwxr-x 3 vagrant vagrant 4096 Oct 4 17:31 .. -rw-rw-r-- 1 vagrant vagrant 5816548 Oct 4 13:00 1 .jpg -rw-rw-r-- 1 vagrant vagrant 5816548 Oct 4 13:00 2.jpg -rw-rw-r-- 1 vagrant vagrant 5816548 Oct 4 13:00 3.jpg -rw-rw-r-- 1 vagrant vagrant 5816548 Oct 4 13:00 4.jpg -rw-rw-r-- 1 vagrant vagrant 5816548 Oct 4 13:00 5.jpg mogrify -resize 20% *jpg ls -al total 2108 drwxrwxr-x 2 vagrant vagrant 4096 Oct 4 17:31 . drwxrwxr-x 3 vagrant vagrant 4096 Oct 4 17:31 .. -rw-rw-r-- 1 vagrant vagrant 426200 Oct 4 17:31 1.jpg -rw-rw-r-- 1 vagrant vagrant 426200 Oct 4 17:31 2.jpg -rw-rw-r-- 1 vagrant vagrant 426200 Oct 4 17:31 3.jpg -rw-rw-r-- 1 vagrant vagrant 426200 Oct 4 17:31 4. jpg -rw-rw-r-- 1 vagrant vagrant 426200 Oct 4 17:31 5.jpg

There was no difference when comparing this with the one converted using the convert command.

In the end, what took more time was the selection of images rather than image conversion.

We would like to thank you for taking a photo of the companion in Tokyo Game Show 2016, which took a long time considering we only have images

That's it.

If you found this article helpful , please give it a like!
0
Loading...
0 votes, average: 0.00 / 10
112
X facebook Hatena Bookmark pocket
[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

The person who wrote this article

About the author

Yoichi Bandai

My main job is developing web APIs for social games, but I'm also fortunate to be able to do a lot of other work, including marketing.
Furthermore, my portrait rights in Beyond are treated as CC0 by him.