You are reading the article Easily Create A Web App With Wix Code updated in December 2023 on the website Achiashop.com. We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested January 2024 Easily Create A Web App With Wix Code
This is a sponsored article and was made possible by Wix. The actual contents and opinions are the sole views of the author who maintains editorial independence, even when a post is sponsored.
If you are building a web app or dynamic website, you will have to use complicated tech jargon like databases, forms, and javascripts to build an interactive website. Most web builders don’t provide such tools, as it adds tons of complication to their app.
Wix Code adds such things to its existing web-building tools without the complication. It offers several templates for you to build and manage your databases, forms and also allows you to add javascript code to your site. Best of all, you can make use of the dynamic pages feature to quickly populate content from the database, making it more like a Content Management System rather than a website builder.
In the example below we will create a simple Make Tech Easier blog and add dynamic features to it from Wix Code.
Setting up a new site with WixAssuming that you are new to Wix, you can get started by signing up for an account with Wix. Once you have created an account, you will be prompted to create your website.
Next it will ask you to select the type of website you want to create. Since I am replicating a Make Tech Easier blog, I selected the “Blog” option.
The next screen will ask how you want to create your website.
Wix ADI makes use of artificial intelligence to create a site automatically for you. If you prefer to go manual, select the Wix Editor method. (To access Wix Code you have to use the latter. If you have chosen Wix ADI, you can still switch to the Editor mode later on.)
For this example I used the Wix Editor as I wanted to have full control over the site’s look and feel. From there you can start with a template. (There are thousands of them.)
To keep it simple, I started with a blank template with a classic layout. The following image is what it looks like.
Accessing Wix CodeTo access Wix Code go to “Tools” and check the “Developer Tools” option.
You will now see a new “Site Structure” column. This is where you can access all Wix Code features.
Creating databases to store postsOnce the collection is created, you can start adding fields and data into it.
What we have created is a Posts database containing the title, content, published date and various aspects of a blog post. Next, we need to populate the database content to the main site.
Dynamic PagesDynamic pages are more like a template page where you can create one design and connect it to the database, and it will auto-populate all the items in your database to the front page under their own URLs. For example, we have six posts in the database. With one single dynamic page, we can get it to display all the posts in the main site. This saves you the effort to manually create a single page for each post. There are two main kinds of dynamic pages in Wix Code – one is for displaying a single item, while the other is for Category (a collection of similar items in a list).
The following shows how to create dynamic pages and link them to the site.
2. Select “Item Page” from the popup.
3. In the URL select the field (in the database) that you want it to use for the URL. In this case I set the “title” to be the URL.
And I did the same for the featured image, post content, etc.
5. Once you are done with the design, you can preview it and see how it looks on the front end.
6. The next step is to link the dynamic page from the Home page. Load the Home page and add a Repeater widget from the “Lists and Grids” section. Connect the widget to the Posts database and link each element in the widget with the fields in the database. Under the “Link connects to” section, scroll down and select “Posts” in the Dynamic Pages section.
That’s it.
What you can see is that we have only created one dynamic page, and it will automatically generate all the pages for each item in the database. You can do the same thing to add a Category dynamic page too.
Adding javascript to pagesIf you are a savvy javascript coder, you can add javascript to each additional feature on each page. For example, if you have added a user form to your page, you can make use of javascript to validate the form field before submission.
1. We have created a simple form that will collect the First Name, Last Name and Email address from the user. For this form we want to validate the email address and make sure the “Confirm email” field is the same as the “Email” field.
2. Add the following code to the “Page Code” section:
$w.onReady
(
function
(
)
{
let otherEmailElement=
$w(
otherEmailElementId)
;
if
(
value===
otherEmailElement.value
)
{
otherEmailElement.validity
.valid
=
true
;
otherEmailElement.resetValidityIndication
(
)
;
return
;
}
console.log
(
"Email and Confirm Your Email fields do not match"
)
;
otherEmailElement.validity
.valid
=
false
;
otherEmailElement.updateValidityIndication
(
)
;
reject(
"Email and Confirm Email fields do not match"
)
;
}
;
$w(
"#emailConfirmInput"
)
.onCustomValidation
(
validateEmail(
"#emailInput"
)
)
;
$w(
"#emailInput"
)
.onCustomValidation
(
validateEmail(
"#emailConfirmInput"
)
)
;
let validationMessage=
''
;
if
(
!
$w(
'#emailInput'
)
.valid
)
{
if
(
!
$w(
'#emailInput'
)
.value
)
validationMessage+=
'Please enter an email address
n
';
else
if
(
$w(
'#emailInput'
)
.value
!==
$w(
"#emailConfirmInput"
)
.value
)
{
validationMessage+=
'Email and Confirm Email fields do not match
n
';
}
$w(
'#validationMessages'
)
.text
=
validationMessage;
$w(
'#validationMessages'
)
.expand
(
)
;
}
else
$w(
'#validationMessages'
)
.collapse
(
)
;
}
)
;
}
)
;
This will validate the email address and show the error message if the email is invalid.
There is plenty you can do with Javascript. Check out the examples here for more information.
External APIsThis is the only step where it could get more complicated. Wix Code now integrates with external API, so you can easily connect to third-party services like Amazon, Dropbox, Google Drive, Twitter, IFTTT, Zapier, etc. I won’t go into details here, but if you are interested, you can check out their API documentation.
ConclusionKudos to Wix for creating such an easy-to-use tool that will solve many problems.
Try out Wix Code and let us know what you think of it.
Wix Code
Damien
Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.
Subscribe to our newsletter!
Our latest tutorials delivered straight to your inbox
Sign up for all newsletters.
By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.
You're reading Easily Create A Web App With Wix Code
How To Create And Scan A Spotify Code
Do you love to share music with your friends? Whether it’s a new song or your favorite mix, sharing music on Spotify is not only fun, but easy as well.
What you might not know is that Spotify offers a super simple way to share music. You can create a Spotify code for a song, album, playlist, artist profile, band profile, or even a podcast. Then share that code with a pal who can enjoy that shared item, too.
Table of Contents
Here, we’ll show you the different ways you can create this barcode-like image and then scan Spotify codes if you receive them yourself.
Create a Spotify Code in the Mobile AppYou can grab a code from the Spotify app to share with a friend via email or text message.
Open the Spotify app on your iPhone or Android device.
Navigate to the item you want to share. This can be a playlist in Your Library, an album you searched for, or a song you recently played.
Tap the three dots for the item to open More Options.
You’ll immediately see the Spotify code on the next screen. Tap the code to save it to your photos or capture a screenshot of the code (depending on your device).
You can then share the Spotify code like any other image and help your friend to listen to a song, playlist, or podcast with you!
Create a Spotify Code on the Web Obtain the Spotify URITo create a code on the web, you’ll need to get the Spotify URI for the item you want to share. This is probably easiest if you have the Spotify Web Player open in another browser tab, although you can copy the URI from the desktop app too.
Select the three dots next to an item to display More Options.
Move your cursor to Share and choose Copy Spotify URI. If you don’t see this action, press and hold your Alt key on Windows or your Option key on Mac to display it in the pop-out menu.
With the URI copied to your clipboard, follow the next set of steps to create and customize your Spotify code.
Create the Spotify CodeWith your URI ready to paste, you’ll head to a specific Spotify Codes site to create your code. You don’t have to sign into your Spotify account to create the code.
Select Get Spotify Code and you’ll see the code and customization options open on the right side.
You can choose a Background Color or enter the hex code for an exact color. Then, choose the Bar Color from white or black, enter a Size in pixels, and pick a Format for the image from JPEG, PNG, or SVG.
When you finish, hit Download to save the image to your computer.
You can then post your code on social media, send it via email, share it in text message, or whatever you like.
Scan Spotify CodesIf you’re on the receiving end of a Spotify code, you can currently only view the item being shared with you using the mobile app. Scanning a Spotify code is similar to scanning a QR code to open an item. Follow these steps to scan and use Spotify codes.
Open the Spotify app on your iPhone or Android device.
Go to the Search tab at the bottom.
Tap the Camera icon at the top or tap inside the Search bar to select the Camera icon. You may be asked to give Spotify access to your camera first.
To scan the Spotify code, simply capture it in the frame on your screen. If you happen to save a code to your device photos, choose Select From Photos and browse for the image. You should see that item instantly pop open.
A Spotify code gives you a handy way to share the music you enjoy. Hopefully, you’ll check out this feature and maybe even receive a Spotify code in return!
How To Create Telegram Channels On Mobile And Web
Telegram channels allow you to host a large audience and to share information with them. An unlimited number of subscribers can join a Telegram channel. In this step-by-step guide, we will show you how to create Telegram channels on mobile and on the web.
We’ll also tell you about the difference between Telegram groups and channels, how to add people to your channel, and some admin controls that you’ll need.
Table of Contents
The Difference between a Telegram Channel and a Telegram GroupA Telegram channel is like an admin-only WhatsApp group, where members cannot post anything. You can think of Telegram channels like message boards–you’re allowed to get the latest updates from your favorite news portal, company, or a personality you want to follow.
When you follow these accounts on social media portals, random algorithms may prevent you from seeing their posts sometimes. A Telegram channel allows you to circumvent that limitation. You also get individual links for each post in a Telegram channel, and you can view detailed stats to see how many people viewed each post.
Unlike channels, a Telegram Group by default allows all members to post messages. It also has a limit of 10,000 people per group. Groups are designed for chats between members, and channels are more like broadcasting platforms.
How to Create a Telegram Channel on the WebTelegram’s web app doesn’t allow you to remove subscribers, but you can do that using its desktop or mobile apps.
Private Telegram Channels vs Public Telegram ChannelsBy default, all Telegram channels created using its web app are private. This means that you’ll have to keep sharing the invite link with Telegram users to bring them to your channel. If a person doesn’t have this invite link, they will not be able to join your channel. On Telegram’s mobile and desktop apps, you can choose which type of channel you want to create during the setup process.
Public Telegram channels can be joined by everyone and are indexed by search engines such as Google. You can easily use Telegram search or other search engines to find and join these channels, and you don’t need any invite links to join such channels. This way you can add subscribers even faster than before.
You can change your private channel to public and vice-versa anytime.
Useful Admin Controls for Telegram ChannelsAs the owner of a Telegram channel, you have several helpful administrator privileges that you should use wisely. First let’s take a look at basic customization such as changing the channel’s name and picture.
How to Create Telegram Channels on Its Desktop Apps How to Create Telegram Channels on Android, iPhone, and iPadYou can manage your channel by tapping its name and selecting the Edit option.
Keep the Broadcasts GoingNow that you’re using Telegram channels to good effect, be sure to know how secure the messaging app is. We’ve got a full guide to help you check if your favorite messaging app is secure. You can make the most of your messaging app once you’re aware of its security levels.
How Ai Can Help You Create A Website With Chatgpt
Artificial intelligence (AI) is changing the world, and web development is no exception. ChatGPT is a powerful AI tool that can help you create a website quickly, accurately, and cost-effectively.
ChatGPT is a chatbot that can generate websites and write code to fulfill various web development tasks. It uses AI to automate many of the steps involved in building a website, making the process faster and easier.
In this article, we explain how AI can assist you in creating a website with ChatGPT.
What is ChatGPT?ChatGPT is a chatbot developed by OpenAI that can have conversations with humans in a natural way. It can answer questions, provide information, and even generate creative content. ChatGPT is just one example of the many ways that AI is changing our world. As AI continues to develop, we can expect to see it used for even more tasks. AI has the potential to make our lives easier, more efficient, and more enjoyable.
How can AI help you create a website?AI technology can help you create a website in various ways. Here are some ways that AI can assist in website creation:
Website Design: AI can help generate website design ideas and create visually appealing layouts. By analyzing vast amounts of data and patterns from existing websites, AI algorithms can generate design recommendations, color schemes, font choices, and layout options that are tailored to your specific requirements and preferences.
Content Creation: AI can assist in generating website content. For instance, AI-powered natural language processing (NLP) algorithms can analyze your brand’s messaging, product information, and other relevant content to generate written content for your website, including product descriptions, blog posts, and social media posts. This can help save time and effort in content creation.
Image Editing: AI can be used for image editing tasks such as resizing, cropping, and optimizing images for the web. AI-powered image recognition algorithms can also automatically tag and categorize images, making it easier to organize and display visual content on your website.
Personalization: AI can enable personalized user experiences on your website. By analyzing user behavior and preferences, AI algorithms can provide personalized recommendations and content tailored to individual users, creating a more engaging and relevant experience.
Chatbots and Customer Support: AI-powered chatbots can provide automated customer support on your website, assisting users with frequently asked questions, helping with product recommendations, and handling basic inquiries. This can free up your team’s time and resources while providing quick and efficient support to your website visitors.
Testing and Optimization: AI can help optimize your website’s performance. For instance, AI-powered analytics tools can analyze user data, conduct A/B testing, and provide insights on website performance, user behavior, and conversion rates. This can help you make data-driven decisions to improve your website’s effectiveness.
Security: AI can assist in website security by leveraging machine learning algorithms to detect and prevent potential security threats, such as identifying and blocking suspicious activities, identifying vulnerabilities, and protecting against cyber attacks.
It’s important to note that while AI can be a powerful tool in website creation, human creativity and expertise are still crucial for designing a unique and effective website that aligns with your brand and business goals. AI should be used as an aid to enhance human capabilities and streamline the website creation process.
Can ChatGPT create a website?There are varying opinions on whether ChatGPT can create a website. While some sources suggest that ChatGPT can assist with website development and provide code snippets or instructions to form web pages, others state that it cannot fully build a website on its own. It is important to note that ChatGPT is a language model and not a web development tool, so it may be limited in its ability to create a functioning website. Ultimately, the extent to which ChatGPT can create a website may depend on the specific use case and the complexity of the website being created.
We asked ChatGPT if it could create a website, and ChatGPT responded: No, as an AI language model, I do not have the capability to directly create a website, as it requires technical skills and expertise in web development. However, I can certainly help guide you through the process of creating a website and provide you with information and recommendations.
To create a website, you will need to follow these general steps:
Define your website’s purpose: Determine the main objective of your website. Is it for personal blogging, e-commerce, showcasing a portfolio, or something else? Clarify your goals to guide your website creation process.
Choose a domain name: Your domain name is the unique web address that users will type in to access your website. Choose a domain name that is relevant to your website’s content and easy to remember.
Select a website builder or CMS: There are various website builders and content management systems (CMS) available, such as WordPress, Joomla, Drupal, Wix, and others. These platforms provide templates and tools to create and customize your website without extensive coding knowledge. Choose a platform that aligns with your website’s purpose and your technical skill level.
Design and customize your website: Use the website builder or CMS to select a template or design for your website, and customize it to suit your needs. Add your content, such as text, images, videos, and other media.
Create website content: Create high-quality content for your website, including text, images, videos, and other media. Ensure that your content is engaging, relevant, and optimized for your target audience.
Optimize your website: Incorporate search engine optimization (SEO) techniques, such as using relevant keywords, meta tags, and descriptions, to improve your website’s visibility on search results and drive organic traffic.
Test and preview your website: Make sure your website is functional, user-friendly, and visually appealing. To ensure compatibility, test it in different browsers and devices to make sure it appears and functions correctly on various platforms. Test all links, forms, and interactive elements to ensure they work as intended.
Publish your website: Once you’re satisfied with your website’s design, content, and functionality, publish it to make it live on the internet. Follow the instructions provided by your website builder or CMS to publish your website to a hosting server.
Maintain and update your website: Regularly update your website with fresh content. Monitor its performance. Fix any issues and keep plugins up to date to ensure security and optimal performance.
Creating a website can be a complex process, and if you’re not familiar with web development, you may want to consider hiring a professional web designer or developer to help you create a website that meets your specific needs and goals.
How to Learn Web Design with ChatGPT Ask ChatGPT to teach you web designChatGPT is a powerful AI tool that can be used for a variety of tasks, including learning web design. Here are a few ways to use ChatGPT to learn web design:
Ask ChatGPT general questions about web design. For example, you could ask “What is web design?” or “What are the different aspects of web design?” ChatGPT will provide you with a comprehensive answer to your question.
Ask ChatGPT to create a web design course for you. ChatGPT can create a custom web design course that is tailored to your specific needs and interests. The course will include all of the essential topics, such as HTML, CSS, and JavaScript.
Ask ChatGPT for online resources or book recommendations. ChatGPT can provide you with a list of high-quality online resources and books on web design. This will save you time and effort searching for the information you need.
Using ChatGPT to learn web design is a great way to get started in this field. ChatGPT is a powerful tool that can provide you with the knowledge and skills you need to create beautiful and effective websites.
Here are some additional tips for using ChatGPT to learn web design:
Be precise in your questions. The more precise you are, the better ChatGPT can respond to your questions about web design learning.
Use keywords in your questions. This helps ChatGPT find the information it needs faster.
Be patient. ChatGPT is a powerful tool, but it may take some time to generate a response for web design learning.
ChatGPT can help you create a website outlineChatGPT can help you create a website outline quickly and easily. Whether you’re a freelance designer or creating a website for your own small business, ChatGPT can help you get started by suggesting what web pages you should include and what should be inside each of them. This can save you a lot of time and effort, as you won’t have to do as much research or fill up a blank page.
You can take as much or as little of ChatGPT’s suggestions as you want. Maybe you’ll reject all of them, but be inspired to come up with something even better on your own. Or maybe you’ll get an amazing idea for a website that just needs a few tweaks to turn into a masterpiece.
Here’s how to use ChatGPT to create a website outline:
Start by brainstorming a list of the main pages you want your website to have. This could include a homepage, about page, contact page, and any other pages that are relevant to your business or project.
Once you have a list of pages, use ChatGPT to generate ideas for what content should go on each page. You can do this by simply typing in the name of the page and asking ChatGPT for ideas.
Review ChatGPT’s suggestions and take what you like. You can also add your own ideas or modify ChatGPT’s suggestions as needed.
Once you’re happy with the outline, you can start designing your website. ChatGPT can also help you with this by generating ideas for color schemes, fonts, and layouts.
Using ChatGPT to create a website outline is a great way to save time and get started on your project quickly. So why not give it a try?
Use ChatGPT to Create Engaging and Informative Website ContentChatGPT is a powerful AI tool that can be used to create engaging and informative website content. Whether you’re a web designer creating templates or a designer working on custom projects, ChatGPT can help you save time and create high-quality content that will help you attract and engage visitors to your website.
Here are a few ways to use ChatGPT to create website content:
Generate headlines, taglines, and body copy: ChatGPT can generate headlines, taglines, and body copy that is relevant to your website’s topic and target audience. This can save you a lot of time and effort, as you won’t have to come up with the content yourself.
Write blog articles: ChatGPT can also write blog articles on relevant topics. This is a great way to add fresh content to your website and keep visitors coming back for more.
Create social media posts: ChatGPT can also create social media posts that are engaging and informative. This is a great way to promote your website and reach a wider audience.
Using ChatGPT to create engaging website content is a great way to improve the overall quality of your website and increase the number of visitors who convert into customers.
Pros and Cons of ChatGPT for Creating a WebsiteWhile ChatGPT is a powerful language model and has many potential use cases, including content creation, it also has its own set of drawbacks that should be taken into consideration before using it for creating a website. Here are some pros and cons of ChatGPT for creating a website:
Pros:
ChatGPT can assist with content creation, generating unique text based on given prompts which can then be used as website content.
ChatGPT can provide technical assistance for coding or development-related issues.
ChatGPT can help with research on topics related to web design and development.
Cons:
ChatGPT may not always be accurate in its responses as it generates responses based on data it has learned from and may not fully understand the context of the query.
ChatGPT’s responses may not be tailored to the specific website’s audience, tone or topic.
ChatGPT may not be well-suited for creative tasks (like developing visuals or brand identity) that require a more human touch.
Overall, while ChatGPT can provide helpful assistance in creating a website, its limitations with accuracy, tailored content, and creativity should still be taken into consideration before using it. Expertise from specialized developers, designers or writers should still be combined with ChatGPT-generated content to produce high-quality websites.
ConclusionArtificial intelligence (AI) is no longer a figment of science fiction or a futuristic invention. It is now a part of our everyday lives. AI-powered tools are becoming increasingly common, and they are being used for a variety of tasks, from web design to customer service. One of the most impressive examples of the growing use of AI is ChatGPT.
ChatGPT is a powerful AI tool that can help you create a website quickly, accurately, and cost-effectively. However, it’s important to note that AI is not a replacement for human creativity and expertise.
Overall, AI can significantly streamline the website creation process, enhance user experiences, and improve website performance by leveraging data-driven insights and automation capabilities. However, it’s important to note that AI is a tool and not a replacement for human creativity and expertise. Human input and oversight are still critical for creating a successful website that aligns with the business’s goals and brand identity.
How To Change Your Grub Background Easily With Grub Customizer
Let’s admit it. When you boot up your Linux computer, the Grub menu looks ugly. Luckily, if you don’t like how your Grub boot menu looks, you can configure it according to your tastes. The most striking change is using a custom background. We’ll show you here how to easily change the Grub background.
Install Grub CustomizerTo install grub customizer on Arch, Manjaro, and compatible distributions, use:
sudo
pacman-S
grub-customizerOn Fedora, you can try:
sudo
dnf
install
grub-customizerOn Debian, Ubuntu, and compatible distributions, you can bring it on board with:
sudo
apt
install
grub-customizerAfterward, find it among the rest of your installed applications and run it.
Change the BackgroundGrub Customizer offers many options that allow you to modify your Grub boot menu, from tweaking its entries to configuring its looks.
Go to “Appearance settings.” You will find the option you need there.
Note that if your Grub already has a background defined, you’ll see that instead of “(None)” in this button.
Choose the image file you want to use as a background for your Grub boot menu from the requester that appears.
You can choose files directly in JPG or PNG format.
Grub Customizer will load the image you selected and present a preview of how your boot menu will look. If your wallpaper’s colors render any text unreadable, you can use the rest of the options on the left to change the color of your font and its background, both when unselected and highlighted.
Reboot your computer to see the changes. If the grub menu doesn’t appear, it may be configured to load the default operating system directly. To force Grub to show up, after rebooting and straight after the BIOS/UEFI screen, keep Shift pressed on your keyboard.
If you want, you can dive deeper into Grub and Grub Customizer to make your computer’s boot menu your own. Changing its background and primary colors, though, will probably be more than enough for most users.
Odysseas Kourafalos
OK’s real life started at around 10, when he got his first computer – a Commodore 128. Since then, he’s been melting keycaps by typing 24/7, trying to spread The Word Of Tech to anyone interested enough to listen. Or, rather, read.
Subscribe to our newsletter!
Our latest tutorials delivered straight to your inbox
Sign up for all newsletters.
By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.
Compress & Optimize Images Easily With Imageoptim For Mac Os X
If you’re at all concerned about the file size of images you should grab ImageOptim, a free image compression tool that is so ridiculously simple it’s basically foolproof, while still being extremely effective. The app works to compress images without reducing image quality, which is achieved by bundling several compression tools, including the popular PNGCrush, PNGOUT, AdvPNG, Zopfli extended OptiPNG, JPEGrescan, jpegtran, JPEGOptim, and gifsicle, and using those tools to find the optimum compression parameters, in addition to stripping color profile information, EXIF, and other metadata out from the raw files. ImageOptim supports a variety of file formats, including PNG, GIF, JPG, and animated GIFs, here’s a quick look at the interface:
The simplicity is deceptive in that it doesn’t demonstrate just how handy this app is, or just how effective the optimization is. Let’s cover usage and a few tricks to get the most out of it…
Optimizing Image Files with ImageOptim for Mac
Head over to the developer website and grab ImageOptim (free) and uncompress the archive, if you intend on using it often, drag the chúng tôi into your /Applications/ directory
Launch ImageOptim and have the window somewhere visible from the Finder windows
Start compressing image files with a drag & drop into the apps window to begin compression, or use the “Open” option from the File menu to select files manually
Any image opened within the ImageOptim app will immediately shrink down losslessly, this is done by stripping the exif data and other useless details that (should) have no impact on the image quality, while reducing file size. No additional steps are needed, though if you’re looking beyond a single file compression you can use a few tricks to speed up the process of groups of pictures.
How well does it work? That varies, but on average the image size savings are about 15-35%, making it a useful and must-have tool for web designers, developers, publishers, bloggers, app developers, or anyone else that wants to reduce image file size and bandwidth requirements. Some files can be dramatically compressed though, and there are instances where poorly optimized original files can be squeezed down as much as 50-60%, depending on what is actually causing the file to be unnecessarily large. ImageOptim is particularly effective for uncompressed files, but you should have success with just about any image document you throw at it. The app will report savings for each individual image, and also show you the net compression if you toss a bunch of files at it:
Bulk Compress Images with Drag & DropYou can bulk optimize images by using a large drag & drop. The best way I’ve found to do this is to launch the ImageOptim app first and have the icon sitting in your Dock while it’s active, then navigate to the folder containing images you want to compress, select them all, then use a drag and drop onto the icon to start the process. JPG and GIF files will compress extremely fast, but PNG files can take quite a bit longer to optimize, and in all cases the amount of time it takes to compress the image varies depending on the picture resolution and the total file size to begin with. For huge batch compressions, this really is one of the easiest ways, other than using the wildcard command line trick we’ll discuss next for Terminal users.
Using Wildcards to Batch Compress from the Command LineFor command line users, use the “open” command to pass wildcards to ImageOptim for easy scripting and bulk image compression like so:
open -a chúng tôi ~/Pictures/SaveToWeb/*.jpg
Of course, compressing a single file is possible using this trick too:
open -a chúng tôi ~/FileName.PNG
It’s possible to use a vary wide wildcard to compress every single image file on a drive, but that is really not recommended unless you know exactly what you’re doing and why.
ImageOptim is an excellent tool for web workers and for those wanting to compress images, but remember that just because ImageOptim should be lossless doesn’t mean that it always is. Additionally, many users find the EXIF data that is attached to image files to be useful, whether for it’s GPS coordinates, camera shooting details like manufacturer and camera settings, or for a variety of other reasons. Using the optimization tricks through ImageOptim strips all EXIF data, making a file effectively blank beyond the raw photo data itself, which can also be the intention for many users.
Great find from @MacGeekPro on Twitter, don’t forget to follow @OSXDaily too!
Related
Update the detailed information about Easily Create A Web App With Wix Code on the Achiashop.com website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!