Image representing real object sizes whether possible?

I work in a skincare company and I lately came into a discussion about whether our E-Commerce images should be representing the real dimension of containers or a scale of them (200 ml, 100 ml, 50 ml).

So basically, the same frame of 500px * 500px would display different proportions depending by the item.

Assuming that this could be possible for certain products on some screens, I found this extremely complicated, non-usable and difficult to maintain, also from a software perspective.

I didn’t find any relevant resource about this topic, on which I’m reluctant. Following some best practice I always see full dimensions and eventually explicable guides to sizes, like amazon does for books.

enter image description here

Image Shortcode from ACF

I would like to create a shortcode that displays the image from an ACF custom field which currently has the return format set to the Image ID. The shortcode also needs to accept a post_id so it can get the field from a certain page.

So the shortcode would be:

[acf_image field="image_field" post_id="88"] 

I am aware that there is an ACF shortcode available, but there is already another location which is dependant on the return format as ID. So I cannot change this.

Does silent image require the caster to actually have visual contact with the area they want to place the effect on?

Or the 60ft radius is all that matters, even if it is behind a wall?

To be even more specific, what about if it is a 15ft area in a location in-range that you have seen before but is now out of sight? And what about when on your turn you have visual contact with an enemy in a certain area, then move behind some cover and then place the illusion -area around the enemy & within the 60ft range-? I am placing this question because I have seen other illusory spells’ descriptions that specify that you must see where you place your spell. Silent image doesn’t specify whether the sight component is or isn’t required.enter image description here

Different Featured Image on Single Post vs. Archives

I am working on (if relevant).

I would like to have a different image set as the featured image for the Single Post view as compared to everywhere else (Archives, etc.). I believe the Multiple Post Thumbnails plug-in is the first step, but am not sure how to set this up correctly.

Any input would be appreciated!

Theme = Soledad

Should I use HTML5 canvas for a 2d image browser game / app?

Ok, I hope this hasn’t been asked, but I could not find one, especially nothing recent.

Quick Background: I’ve been away from programming for a couple of years and dusted off an old project to create a browser game that is already quite functional and I would like to complete, but actually as an IOS / Android app instead of a desktop browser game.

Current Technology Used: CodeIgniter framework, PHP, SQLite, Javascript / JQuery (and obviously HTML / CSS)

Very Basics of the Game: The game itself is basically a civilization build an empire type game. The game area is a background image inside of a DIV element with spaces to build things. Once “built” the buildings are isometric images that are absolutely floated with CSS and aligned over top of the background to appear where they were built in the city. I think that paints the picture, but basically those “buildings” (floated images) are also links that open up additional dialogs and give more game functionality.

Example of game layout

My Question: Keeping in mind that other than aligning the images properly over the background image, all of the images in my game are static.

  • Should I actually be using an HTML5 < canvas > element for this task?

  • Also does the UI get wrapped in the canvas too? (that’s maybe a separate question)

  • Should I use a html5 framework to work with the canvas?

  • Does any of this change if my goal is to publish on IOS / Android instead of desktop browser experience (I.e. apple review process)?

Or are both of these methods just the complete wrong approach? hah. I hope I’ve kept this as clear as possible and thank you for your time and input!!

P.S. I should also say my current strategy is to just keep programming it as a browser game (checking chrome dev tools to see how it looks on phone) and assume I can wrap it later. But if that’s wrong I want to get ahead of it.

How does image reconstruction take place in neural network?

I am reading through and thinking about how neural network works and have been reading about convolutional neural networks (CNN). I am particularly interested in image filtering (or enhancing) using CNN. The thing that confuses me is, how exactly does CNN produce the output, filtered/enhanced image? From what I understand each layer convolves the previous input into more distinctive features, so aren’t we essentially losing details? How would the network then know that, for example, this noisy image A, should be cleaned up here and there as such trained to produce a clean image B?

replace featured image from frontend

I need to replace the featured image of a post in the frontend. I’am using this code without success:

<form id="featured_upload" method="post" action="#" enctype="multipart/form-data">     <input type="file" name="my_image_upload" id="my_image_upload"  multiple="false" />     <input type="hidden" name="post_id" id="post_id" value="55" />     <?php wp_nonce_field( 'my_image_upload', 'my_image_upload_nonce' ); ?>     <input id="submit_my_image_upload" name="submit_my_image_upload" type="submit" value="Upload" /> </form>        <?php  if (      isset( $  _POST['my_image_upload_nonce'], $  _POST['post_id'] )      && wp_verify_nonce( $  _POST['my_image_upload_nonce'], 'my_image_upload' )     && current_user_can( 'manage_options', $  _POST['post_id'] ) ) {      include('wp-admin/includes/image.php' );     include('wp-admin/includes/file.php' );     include('wp-admin/includes/media.php' );      if (has_post_thumbnail( $  _POST['post_id'] )) {     $  featured_image = wp_get_attachment_image_src(get_post_thumbnail_id( $  post->ID ), 'full' );     }     $  attachment_id = media_handle_upload( 'my_image_upload', $  _POST['post_id'] ); 

What am’I missing?