Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Så här resizer du stora images i WordPress

Om du uppladdar stora images till din site kan det göra din site betydligt långsammare. Det är därför vi rekommenderar användare att alltid save images som är optimerade för webben. Men om du runar en site med flera auktoriseringar kan det vara svårt att övervaka bilder som har laddats upp av andra användare. Tänk om vi berättade för dig att du kan resize stora images automatiskt på din WordPress site, även långt efter att de har laddats upp? I den här artikeln visar vi dig hur du kan bulkresize stora images i WordPress.

Viktigt: Vänligen gör en backup av din WordPress site innan du bulk-resizer bilder. När de väl har resizes kan denna action inte ångras.

Tutorial i video

Subscribe to WPBeginner

Om du inte gillar videoklippet eller behöver fler instruktioner, fortsätt då att läsa.

Det första du behöver göra är att installera och aktivera Imsanity plugin. När du har aktiverat går du till Settings ” Imsanity för att konfigurera pluginet.

Imsanity plugin settings

Pluginet allow you to choose the maximum image size for all images uploaded to a post/page, images uploaded directly to media library, and images uploaded for theme options.

Standardvärdet är 1024 x 1024 pixlar som du kan ändra när som helst.

Under bildstorlekarna har du alternativen att välja bildkvalitet, konvertera BMP till JPG och PNG till JPG.

Standardinställningen för bildkvalitet för jpeg-filer i WordPress är 90, och en lägre inställning leder till kvalitetsförlust. Att konvertera dina BMP-filer till jpeg är alltid en bra idé. Att konvertera PNG-filer till JPG ger dock inte alltid ett bra resultat.

När du är klar trycker du på knappen save changes för att store dina settings.

På samma page hittar du en Search Images knapp längst ner. Click on it to locate files that are larger than maximum sizes you defined in your settings.

Tillägget kommer att lokalisera och visa stora images.

Resize large images

Review resultaten och avmarkera alla images som du inte vill resize.

När du är klar trycker du på knappen Resize Image S izes och pluginet kommer att börja resize images till de maximala värden som du har enter i settings. Det kommer också automatiskt att ersätta stora images med de normalstora.

Det var allt, vi hoppas att den här artikeln hjälpte dig att bulk resize stora images i WordPress.

Du kanske också vill ta en titt på Varför du behöver ett CDN för din WordPress blogg.

Om du gillade den här artikeln, vänligen prenumerera på vår YouTube-kanal för WordPress video tutorials. Du kan också hitta oss på Twitter och Google+.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

14 kommentarerLämna ett svar

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Herb Baldwin says

    Does the Imsanity Plugin automatically resize pix on the fly as I am uploading them to my blog? Or would I need to ”run” the plugin periodically to resize the larger files?

  3. Chris says

    Does this plugin keep the aspect ratio?

    All I want to do is to resize images that are larger than 800px of width down to 800px of width without distorting them. So let’s say I have images that have 2400×1200 px -> should resize to 800×400 px while 1600x900px should be resized to 800x450px.

    I hope you can help. Thanks in advance.

  4. Lisa Wist says

    Unfortunately, this plug-in doesn’t work with the current release of WP (4.5.2). If you check the support tab for this plug-in you’ll see several people report that it stopped working after version 4.5. Do you have an alternate recommendation?

  5. shade says

    Hello
    I just installed the insanity pluggin on my site, on going to settings I noticed the images that have loaded within page/post is 2048×2048 pixels width/height. I want to resize to a standard size for just all my featured moving images and not images on post and page. I do not really know how to go about it, can someone please help because I want to be cautious of the warnings to be careful

    thanks

  6. Roger says

    I’m working on a site that has a lot of images with several hundred blog posts. Turns out the author has just been uploading the original photos and using the WP editor to crop and ’resize’ them. I’m fairly certain this still leaves the orignal uploaded file untouched, and now the site is very bloated, almost unmanagelable. Will this plugin retroactively remove large original images?

    Thanks in advance!

  7. Diederik says

    Another longshot: can the source be a website address? So not the image but the home page of the site, returning a jpg for instance?

  8. Cameron Archibald says

    Great article. Looks like an excellent plugin. I also read on about CDN’s and learned a lot. Thank you very much.

  9. Travis Pflanz says

    I use Imsanity for all projects.

    This article doesn’t even cover the BEST feature of this plugin. Imsanity will automatically resize your large images when you upload them, then discard the over-sized image, saving the resized image as the ”original.”

    For example: You have a 5 megapixel image, more than 5000px wide. You’re not going to need this wide of an image on your website.

    Just upload the image and Imsanity will resize the image (not crop) and save the resized image on your server and in your media library.

    This is also useful for when a theme is coded poorly, using the original image size to display on the website – We’ve all seen the super slow image loading on websites.

    My recommendations:

    Set images uploaded to page/post to the size of your content container – if you use pages with and without a sidebar, make sure you use the width for the page without a sidebar.change the

    Set ”Uploaded to Media Library” and ”Uploaded Elsewhere” to unlimited – This will give an easy to save the large images, if needed, as well as allow larger images for slideshows, background, headers, etc.

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.