convert в Linux
Command ‘convert’ not found, but can be installed with: sudo apt install graphicsmagick-imagemagick-compat # version 1.4+really1.3.38-1, or sudo apt install imagemagick-6.q16 # version 8:6.9.11.60+dfsg-1.3build2 sudo apt install imagemagick-6.q16hdri # version 8:6.9.11.60+dfsg-1.3build2
Нужно установить imagemagick
sudo apt -y install imagemagick
Пример
Сконвертируем изображение с граффити из города Торремолинос
Уменьшим ширину до 800 пикселей
convert graffiti.jpg -resize 800 graffiti800.jpg
Уменьшим ширину до 500 пикселей
convert graffiti.jpg -resize 500 graffiti500.jpg
Скрипты
Скрипт, который сжимает все изображения jpg и png до заданной ширины
#!/bin/bash WIDTH = 1600 for file in ./*; do EXT = » $ » FULLNAME = » $ » if [[ $EXT = «jpg» ]] || [[ $EXT = «png» ]] ; then convert $FULLNAME -resize $WIDTH $FULLNAME fi done
#!/bin/bash WIDTH = 1000 resize_image() file = $1 EXT = » $ » FULLNAME = » $ » echo $FULLNAME if [[ $EXT = «jpg» ]] || [[ $EXT = «png» ]] ; then convert $FULLNAME -resize $WIDTH $FULLNAME fi > for file in ./*; do resize_image $file done
convert в Linux
Command ‘convert’ not found, but can be installed with: sudo apt install graphicsmagick-imagemagick-compat # version 1.4+really1.3.38-1, or sudo apt install imagemagick-6.q16 # version 8:6.9.11.60+dfsg-1.3build2 sudo apt install imagemagick-6.q16hdri # version 8:6.9.11.60+dfsg-1.3build2
Нужно установить imagemagick
sudo apt -y install imagemagick
Пример
Сконвертируем изображение с граффити из города Торремолинос
Уменьшим ширину до 800 пикселей
convert graffiti.jpg -resize 800 graffiti800.jpg
Уменьшим ширину до 500 пикселей
convert graffiti.jpg -resize 500 graffiti500.jpg
Скрипты
Скрипт, который сжимает все изображения jpg и png до заданной ширины
#!/bin/bash WIDTH = 1600 for file in ./*; do EXT = » $ » FULLNAME = » $ » if [[ $EXT = «jpg» ]] || [[ $EXT = «png» ]] ; then convert $FULLNAME -resize $WIDTH $FULLNAME fi done
#!/bin/bash WIDTH = 1000 resize_image() file = $1 EXT = » $ » FULLNAME = » $ » echo $FULLNAME if [[ $EXT = «jpg» ]] || [[ $EXT = «png» ]] ; then convert $FULLNAME -resize $WIDTH $FULLNAME fi > for file in ./*; do resize_image $file done
Thread: Convert Command Not Working
Gee! These Aren’t Roasted!
Join Date Sep 2009 Location United States Beans 139 —> Beans 139 Distro Ubuntu 12.04 Precise Pangolin
Convert Command Not Working
I just installed 64 bit Karmic Koala and am trying to use terminal to convert a screenshot from .png to .jpg. However, it won’t work (I had no problems in 9.04).
adam@adam-laptop:~$ cd ~/Desktop adam@adam-laptop:~/Desktop$ convert Screenshot.png Screenshot.jpg The program 'convert' can be found in the following packages: * imagemagick * graphicsmagick-imagemagick-compat Try: sudo apt-get install convert: command not found
Cake for coffee’s sake
Re: Convert Command Not Working
yes you first need to install imagemagick.
sudo apt-get install imagemagick
Gee! These Aren’t Roasted!
Join Date Sep 2009 Location United States Beans 139 —> Beans 139 Distro Ubuntu 12.04 Precise Pangolin
Re: Convert Command Not Working
Thank you very much. I should’ve realised it from the output but I don’t remember ever installing it before. Everything is fine now.
- Site Areas
- Settings
- Private Messages
- Subscriptions
- Who’s Online
- Search Forums
- Forums Home
- Forums
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- New to Ubuntu
- General Help
- Installation & Upgrades
- Hardware
- Desktop Environments
- Networking & Wireless
- Multimedia Software
- Ubuntu Specialised Support
- Ubuntu Development Version
- Security
- Virtualisation
- Ubuntu Servers, Cloud and Juju
- Server Platforms
- Ubuntu Cloud and Juju
- Gaming & Leisure
- Emulators
- Wine
- Development & Programming
- Packaging and Compiling Programs
- Development CD/DVD Image Testing
- Ubuntu Application Development
- Ubuntu Dev Link Forum
- Programming Talk
- Repositories & Backports
- Ubuntu Backports
- Bug Reports / Support
- Ubuntu Backports
- System76 Support
- Apple Hardware Users
- Ubuntu Community Discussions
- Ubuntu, Linux and OS Chat
- Recurring Discussions
- Full Circle Magazine
- The Cafe
- Cafe Games
- Market
- Mobile Technology Discussions (CLOSED)
- Announcements & News
- Weekly Newsletter
- Membership Applications
- The Fridge Discussions
- Forum Council Agenda
- Forum Feedback & Help
- Request a LoCo forum
- Resolution Centre
- Ubuntu, Linux and OS Chat
- Other Discussion and Support
- Other OS Support and Projects
- Other Operating Systems
- Ubuntu/Debian BASED
- Debian
- MINT
- Arch and derivatives
- Fedora/RedHat and derivatives
- Mandriva/Mageia
- Slackware and derivatives
- openSUSE and SUSE Linux Enterprise
- Mac OSX
- PCLinuxOS
- Gentoo and derivatives
- Windows
- BSD
- Any Other OS
- Other Operating Systems
- Assistive Technology & Accessibility
- Art & Design
- Education & Science
- Documentation and Community Wiki Discussions
- Tutorials
- Outdated Tutorials & Tips
- Ubuntu Women
- Ubuntu LoCo Team Forums
- Americas LoCo Teams
- Argentina Team
- Software
- Hardware
- Comunidad
- Arizona Team — US
- Arkansas Team — US
- Brazil Team
- California Team — US
- Canada Team
- Centroamerica Team
- Chile Team
- Comunidad
- Hardware
- Software
- Instalaci�n y Actualizaci�n
- Colombia Team — Colombia
- Georgia Team — US
- Illinois Team
- Indiana — US
- Kentucky Team — US
- Maine Team — US
- Minnesota Team — US
- Mississippi Team — US
- Nebraska Team — US
- New Mexico Team — US
- New York — US
- North Carolina Team — US
- Ohio Team — US
- Oklahoma Team — US
- Oregon Team — US
- Pennsylvania Team — US
- Peru Team
- Texas Team — US
- Uruguay Team
- Utah Team — US
- Virginia Team — US
- West Virginia Team — US
- Argentina Team
- Asia and Oceania LoCo Teams
- Australia Team
- Bangladesh Team
- Hong Kong Team
- Myanmar Team
- Philippine Team
- Singapore Team
- Europe, Middle East, and African (EMEA) LoCo Teams
- Albania Team
- Catalan Team
- Portugal Team
- Egypt Team
- Georgia Team
- Ireland Team — Ireland
- Kenyan Team — Kenya
- Kurdish Team — Kurdistan
- Lebanon Team
- Morocco Team
- Saudi Arabia Team
- Sudan Team
- Tunisia Team
- Other Forums & Teams
- LoCo Archive
- Afghanistan Team
- Alabama Team — US
- Alaska Team — US
- Algerian Team
- Andhra Pradesh Team — India
- Austria Team
- Bangalore Team
- Bolivia Team
- Cameroon Team
- Colorado Team — US
- Connecticut Team
- Costa Rica Team
- Delhi Team
- Ecuador Team
- El Salvador Team
- Florida Team — US
- Galician LoCo Team
- Greek team
- Hawaii Team — US
- Honduras Team
- Idaho Team — US
- Iowa Team — US
- Jordan Team
- Kansas Team — US
- Libya Team
- Louisiana Team — US
- Maryland Team — US
- Massachusetts Team
- Michigan Team — US
- Missouri Team — US
- Montana Team — US
- Namibia Team
- Nevada Team — US
- New Hampshire Team — US
- New Jersey Team — US
- Northeastern Team — US
- Panama Team
- Paraguay Team
- Qatar Team
- Quebec Team
- Rhode Island Team — US
- Senegal Team
- South Carolina Team — US
- South Dakota Team — US
- Switzerland Team
- Tamil Team — India
- Tennessee Team — US
- Trinidad & Tobago Team
- Uganda Team
- United Kingdom Team
- US LoCo Teams
- Venezuela Team
- Wales Team
- Washington DC Team — US
- Washington State Team — US
- Wisconsin Team
- Yemen Team
- Za Team — South Africa
- Zimbabwe Team
- Americas LoCo Teams
- Other OS Support and Projects
- Ubuntu Official Flavours Support
Bookmarks
Bookmarks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
convert в Linux
Command ‘convert’ not found, but can be installed with: sudo apt install graphicsmagick-imagemagick-compat # version 1.4+really1.3.38-1, or sudo apt install imagemagick-6.q16 # version 8:6.9.11.60+dfsg-1.3build2 sudo apt install imagemagick-6.q16hdri # version 8:6.9.11.60+dfsg-1.3build2
Нужно установить imagemagick
sudo apt -y install imagemagick
Пример
Сконвертируем изображение с граффити из города Торремолинос
Уменьшим ширину до 800 пикселей
convert graffiti.jpg -resize 800 graffiti800.jpg
Уменьшим ширину до 500 пикселей
convert graffiti.jpg -resize 500 graffiti500.jpg
Скрипты
Скрипт, который сжимает все изображения jpg и png до заданной ширины
#!/bin/bash WIDTH = 1600 for file in ./*; do EXT = » $ » FULLNAME = » $ » if [[ $EXT = «jpg» ]] || [[ $EXT = «png» ]] ; then convert $FULLNAME -resize $WIDTH $FULLNAME fi done
#!/bin/bash WIDTH = 1000 resize_image() file = $1 EXT = » $ » FULLNAME = » $ » echo $FULLNAME if [[ $EXT = «jpg» ]] || [[ $EXT = «png» ]] ; then convert $FULLNAME -resize $WIDTH $FULLNAME fi > for file in ./*; do resize_image $file done