## Specify image dimensions in wordpress

When i ran performance report for my website (using GTmetrix & PageSpeed Insights ) and I realized the image dimensions are not set. The theme already had some images, but they are not specified by default. How can I specify them and more importantly, where do I specify the attributes height and width?

## WP is showing wrong image dimensions

Several times over time I changed sizes of thumbnails WP generate when images are uploaded, always setting bigger size.

Recently I set Thumbnail Width 600px width and Medium size Max Width 1800px. After several hundred images uploaded I realized that I need to set smaller image sizes, I reduced Medium size from 1800px to 1500px for future uploads.

I know that already uploaded images will stay on disk in bigger resolution, and that is fine by me, I do not need to use any plugin to regenerate thumbs again.

Problem:

Word Press now shows that size for images uploaded before is also 1500px width, even real size is 1800px (for an example it shows 1500px x 1000px for image that is 1800px x 1200px).

I changed few times width of future images in Dashboard > Settings > Media and I figured out that if real dimensions of already uploaded images are bigger than what is now set in Media Settings, WP will say that width of those images is the width that is set in Media Settings, even real dimensions are bigger.

You can see screenshot example here: https://postimg.cc/fScS3WKH

This is code I use to get image and its dimensions.

``\$  medium_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(\$  post->ID), 'medium'); // Featured image medium size  // To show image dimensions    echo \$  medium_image_url[1]; // Show width echo \$  medium_image_url[2]; // Show height ``

How to get real image dimension of already uploaded images which dimensions are bigger than one now set in media settings?

## Multi-dimensional Knapsack with Minimum Value constraints for Dimensions

In MDK, we have a vector $$W = \{W_1, W_2, …, W_d\}$$ where each element corresponds to the maximum weight for the respective dimension in the knapsack.

I want to add a conditional constraint: $$V = {V_1, V_2, …, V_d}$$, where each $$i$$-th dimension in the knapsack must have a value sum greater than threshold $$V_i$$. I am not so much concerned with the total value sum.

I would like to show this problem is NP-hard. My intuition is that the additional constraint makes this problem harder than MKD and therefore is NP-hard. But clearly this doesn’t constitute a formal proof.

## Can a god travel between planes and or dimensions in D&D?

Can gods freely travel between dimensions or planes of existence? I don’t think they can, or there would be chaos. But maybe a powerful god like Bahamut or an Overgod like AO could?

## What are the physical dimensions of the Immovable Rod?

In our recent campaign came across an Immovable Rod.

Its official description states:

This flat iron rod has a button on one end. You can use an action to press the button, which causes the rod to become magically fixed in place. Until you or another creature uses an action to push the button again, the rod doesn’t move, even if it is defying gravity. The rod can hold up to 8,000 pounds of weight. More weight causes the rod to deactivate and fall. A creature can use an action to make a DC 30 Strength check, moving the fixed rod up to 10 feet on a success.

There are no physical dimensions in regards to size and weight given (e.g. is it a 500mm bar that weighs 1 kg?).

Is there any official description of the physical dimensions of the Immovable Rod, or is it up to the DM’s discretion?

## Can concentration be kept through dimensions?

Say you, in the middle of a battle, cast a spell such as Magnificent Mansion. You go inside and then start casting Conjure Elemental. You then order the elemental to exit the mansion and start fighting something you saw on the outside. Can you maintain concentration on the elemental if you are in a separate plane than the elemental?

## Does changing the outside dimensions of a Bag of Holding break anything mechanically?

One of my players made a character who’s a 2ft. tall gnome artificer. He just created a bag of holding as his wondrous invention, but the exterior dimensions (2ft. wide by 4ft. deep) is bigger than him. So I decide to make it a drawstring backpack with a 2ft. mouth so he still has the same insertion dimensions, and 1.5ft. deep so he can wear it like a backpack and not trip.

Does this change anything about the bag mechanically? Does this seem like a reasonable change?

## What are the dimensions of a box that can contain 20 arrows?

I am playing a level 13 Fighter with the Sharpshooter martial archetype (from Unearthed Arcana: Fighter). I took the Sharpshooter feat as well, of course, and the Archery fighting style. I shoot between 3 and 6 arrows per round (using Action Surge and Extra Attack), so I need a lot of arrows to keep me going through combat.

A Bag of Holding seems to be best option for holding the arrows I will need; since I read this thread, I plan on using a box to hold the bundles – presumably 1 box per bundle to keep things organized.

What dimensions would such a box need to be able to hold 20 arrows?

I am specifically asking for the dimensions of a box that can hold 20 arrows because that determines how many boxes I can put in a bag of holding, which will equal how many arrows I can safely put in a bag of holding.