sewpafly
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Thumbnail Editor] Plugin BrokenI would love to keep working on this, but I don’t have the time right now. Maybe someone could find a patch and contribute?
Forum: Plugins
In reply to: Post Thumbnail Editor Aspect RatioFinding the slider post-thumbnail is dependent on your theme or plugin that creates the slider as each one could use a different post-thumbnail name. You could try changing all the post-thumbnails defined into different areas to determine which one it is, you could ask the author of the theme or plugin, or you could inspect the code itself.
Forum: Plugins
In reply to: Post Thumbnail Editor Aspect RatioEasiest thing to do is under the Options click the “Crop and Save” option which will save without asking you to review it. If the buttons aren’t working (arrows are for toggling between the previous thumbnail and the proposed one, disk is for saving, trash can is for deletion), Look in your javascript console for any errors occuring when you click on it.
More information on available options can be found here: https://sewpafly.github.io/post-thumbnail-editor/editor/#advanced-cropping-options
Forum: Plugins
In reply to: Post Thumbnail Editor Aspect RatioUnder Settings → Media, you can find the Thumbnail settings. (Uncheck the crop setting). Alternately, when you see the message about “These thumbnails have an aspect ratio set”, this is just a message. It means that the thumbnail editor is defining the crop aspect ratio to be the same as the thumbnails selected. (Which is probably what you want)
@Flyhead, just to make sure everyone is on the same page, when you say you’re using the “Post Thumbnail Editor”, you mean my plugin, correct? I have a feeling that @jeremy is talking about wordpress’s built in editor. As far as I know Photon doesn’t work with my plugin — I believe that Photon just stores the original image and then creates the crops itself — it doesn’t pull the crops down and cache them.
If I’m wrong, I apologize, and I’ll see myself out ??
Forum: Plugins
In reply to: [Post Thumbnail Editor] Setting default color forYes. When you select “Fit Crop to Thumbnail” button the color selector should appear.
Forum: Plugins
In reply to: [Post Thumbnail Editor] Adding Back button to dialog boxShort answer: It’s possible, but not likely.
Long answer: WordPress has 0 documentation on the media library and no one would answer my questions. Coding up what I do have wasn’t pleasant. Everytime I go back, I have to experience the pain again and I need to psych myself up for the torture. One of these days I might go back there, but I don’t know how soon.
Forum: Plugins
In reply to: [Post Thumbnail Editor] Can't Get It To Crop.If you are creating your own image gallery:
- Use a thumbnail already created (e.g. thumbnail, thumb-small, thumb-standard, thumb-medium) OR create your own with
add_image_size()
(e.g.pte-ig-thumb
). - Get the image tag (html):
wp_get_attachment_image( $post_thumbnail_id, $size, false, $attr );
. - Put the HTML where you want to display the thumbnail
More information can be found here: https://codex.www.ads-software.com/Post_Thumbnails
Forum: Plugins
In reply to: [Post Thumbnail Editor] Can't Get It To Crop.The image gallery probably isn’t using post-thumbnails. Your theme or plugins are required to use a named post-thumbnail, and you have to crop the same one that they are using.
For instance if I was creating a pte-image-gallery plugin, I would probably define a pte-ig-thumb post thumbnail and then when I created the HTML for displaying thumbnails, I would get the URL for that post-thumbnail using
the_post_thumbnail('pte-ig-thumb');
.The post thumbnail editor plugin should find all the post-thumbnails being used by your current themes/plugins, and allow you to crop those specific post-thumbnail names.
Forum: Plugins
In reply to: [Post Thumbnail Editor] Crop tool bugIt’s the jcrop plugin. There is a new version out though that I’m trying to use for post thumbnail editor 3.0.0. Hopefully this fixes some issues. (It may cause different issues though)
Forum: Plugins
In reply to: [Post Thumbnail Editor] Crop tool bugYeah, this is a known bug, unfortunately caused by the drag/drop plugin that I use. Hopefully this will be fixed in an update.
Not sure, it depends on the theme that you are using.
Here’s twentyfifteen:
wp-content/themes/twentyfifteen/inc/template-tags.php: the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); wp-content/themes/twentyfifteen/functions.php: $prevthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $previous->ID ), 'post-thumbnail' ); wp-content/themes/twentyfifteen/functions.php: $nextthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $next->ID ), 'post-thumbnail' );
This is the default post thumbnail. WordPress creates it if you set a default post-thumbnail-size in wp-includes/media.php. All the wordpress default themes use this to set a default post-thumbnail size:
wp-content/themes/twentyfifteen/functions.php: set_post_thumbnail_size( 825, 510, true ); wp-content/themes/twentythirteen/functions.php: set_post_thumbnail_size( 604, 270, true ); wp-content/themes/twentyfourteen/functions.php: set_post_thumbnail_size( 672, 372, true );
Forum: Plugins
In reply to: [Post Thumbnail Editor] Created thumbnails become 10000 px by 10000 pxPretty sure it’s in the definition of the thumbnail. Some themes/plugins define the post-thumbnail sizes to have an indeterminate side with an abnormally large value. This is incorrect, they should use a ‘0’ instead.
That’s how it used to read in the docs, although I just found the add_image_size entry today says the opposite. I would try changing the image_size to have 0 instead of an extremely large side and seeing if that works, and I’ll do some more research into what is actually happening.
Forum: Reviews
In reply to: [Post Thumbnail Editor] doesn't workYes, the UI is confusing. But it does work.
https://www.youtube.com/results?search_query=post%20thumbnail%20editor
- Use a thumbnail already created (e.g. thumbnail, thumb-small, thumb-standard, thumb-medium) OR create your own with