-
Notifications
You must be signed in to change notification settings - Fork 21
/
readme.txt
218 lines (206 loc) · 7.86 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
=== Simple Image Sizes ===
Contributors: Rahe
Donate link: http://www.beapi.fr/donate/
Tags: images, image, custom sizes, custom images, thumbnail regenerate, thumbnail, regenerate
Requires at least: 3.5
Tested up to: 6.5
Stable tag: 3.2.3
Requires PHP: 8.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
== Description ==
This plugin allow create custom image sizes for your site. Override your theme sizes directly on the media option page.
You can regenerate all the sizes you have just created and choose which one you wanted to regenerate.
You can now get all the code to copy and paste to your function theme file.
Now you can use the generated sizes directly into your posts and insert images at the right size !
Now you choose if you want display the size in the post insert image.
Now you can regenerate the images one by one in the 'Medias' general pane.
Now you can regenerate the images by bulk action in the 'Medias' general pane.
Now you can regenerate the image sizes on single attachment edit page.
I have added a timer so when you regeneration your thumbnails, you can know approximately when the regeneration will be ended.
I have improved the php and javascript, you can know if the image have been regenerated or not or if there is an error and which one.
Contribute on https://github.com/Rahe/Simple-image-sizes
== Installation ==
**PHP8 Required.**
1. Download, unzip and upload to your WordPress plugins directory
2. Activate the plugin within you WordPress Administration Backend
3. Go to Settings > Medias
4. Configure your new image sizes and regenerate the thumbnails !
== Frequently Asked Questions ==
= Where can I add image sizes ? =
Go to Settings -> Media then you can add a image size. You have to add a unique custom name without any spaces or special chars.
The best is to use something like my-custom-size.
Then you have several fields for configuring the image size, the width, the height, cropping.
And then you can choose if the image is displayed on the media insertion or not ( this will be displayed on the dropdown list ).
== Screenshots ==
1. Settings page
2. Get PHP for the theme
3. Choose the sizes to regenerate and regenerate them
== Changelog ==
* 3.2.3
* Update minimum php version to 8.0
* Fix vendor error with composer, case sensitive problems
* 3.2.2
* Update minimum version
* Add CI/CD for releases
* Add wp-scripts for the compilation
* 3.2.1
* Remove the .git file
* Add phpcs file
* 3.2.0
* Compatibility to 4.9.X
* Reformat and clean some code and improve maintenability
* 3.1.1
* Make translatable the link on admin featured image metabox
* Add filter to allow to remove the button : filter SIS/Admin/Post/Display_Thumbnail_Regenerate
* 3.1.0
* Regenerate images from the featured image
* Use wp_send_json since the minimum WordPress version is 3.5
* 3.0.10
* Remove text-domain on the header for language pack
* 3.0.9
* Reuse the after_setup_theme for image size registering
* Code formatting and cleaning
* Check compatibility wth 4.3
* 3.0.8
* Fix potential bug on error ajax
* Stop using init hook and use after_setup_theme for image size registering
* Update underscore cdn version for WP install without it
* Remove useless timer_start
* 3.0.7
* Fix bug on single image regeneration upload page
* Fix bug https://github.com/Rahe/Simple-image-sizes/issues/30
* 3.0.6
* Fix bug for the image adding
* 3.0.5
* Fix bug on condition
* 3.0.4
* Fix global add_image_size
* 3.0.3
* Add Hebrew translations thanks to Atar4U
* 3.0.2
* Fix version check for the image crop positions
* 3.0.1
* Change the template render method for non apache webservers : https://wordpress.org/support/topic/fatal-error-1190?replies=6
* Remove ambigious ids for the css bugging WooCommerce : https://wordpress.org/support/topic/bad-css-style-administration and
* Right code for counting the elements on backoffice : https://github.com/Rahe/Simple-image-sizes/issues/20
* Fix bug on regenation and _e instead of __ : https://plugins.trac.wordpress.org/ticket/2259
* 3.0
* Revamping all the code, change classes and structure
* Use grunt for compiling files
* Handle the 3.9 new cropping position
* Remove aristo css
* Use UI from WordPress
* 2.4.3
* Remove some php notices
* Remove notice when wrong image size
* 2.4.2
* Selective regeneration fix by g100g on http://wordpress.org/support/topic/regenerating-fix
* 2.4.1
* Remove function not working on admin file
* 2.4
* Made for 3.5 and up
* Refactoring PHP/Javascript code
* Javascript improvements
* Remove useless UI
* UI improvements
* Global PHP performance improvements
* 2.3.1
* Add Ajax bulk actions on medias list
* Add ajax thumbnail rebuild on single media
* 2.3
* Add the custom size name in the attachment insertion
* Exclude post_type wich do not support the post-thumbnail feature
* 2.2.5
* Debug the regeneration buggy !
* Complete the french translation
* Security update for single regeneration, include the nonce this time :)
* 2.2.4
* Add security nonces for every actions
* Put the messages at the begining of the log
* Add a select all checkbox Thank to cocola
* Add the german translation thanks to glueckpress
* Remove notice tnahks to christianwach
* Remove useless and buggy for my scripting pointers
* 2.2.3
* Do not force network usage
* 2.2.2
* Debug js for the buttons
* Remove console.log calls
* 2.2.1
* Use buttonset for the checkboxes
* Add Pointer for WordPress 3.3
* Fix translation in French
* Some medias queries for small windows ( change size of buttons and alignment )
* 2.2
* Add new version of css aristo
* Add some icons
* Display button for saving changes only when changes detected
* Display message when a size is modified but not saved and wanted to regenerate
* Debug functionnality when regenerating only some sizes, metas not crushed
* Add solo regenerating
* Remove displaying for theme/not theme sizes
* Use WordPress class for small inputs
* 2.1
* Add javascript timer
* Improve javascript and more IE friendly
* You can now choose if you want to display the image sizes in image insertion or not
* Handle errors and messages
* Remove some css useless rules
* Fix bad translation for french
* Remove accents in image sizes
* Do not update size properties if there is an ajax query for an another size name
* 2.0.3
* Resolve issue with theme sizes witch by default are displayed as not cropped. Thanks to momo360modena for the bug signalment.
* 2.0.2
* Remove debug on php for javascript
* Resolve issue with the different versions on jquery ( like in WP3.2 ) with attr return for checked components
* 2.0.1
* Resolve javascript issue when clicking on delete button
* Resolve issue of never unchecking crop button
* 2.0
* Code refactoring
* Update translations
* Ajaxification of the process
* Deleting by Ajax
* Updating by Ajax
* Adding by Ajax
* Change UI
* Change theme
* Handle ajax errors
* Handle not modified sizes, cropped
* Handle same names
* Sanitize the names
* Customize jQuery ui
* Customize jQuery ui theme
* HTML5 Elements
* CSS3 Animations
* 1.0.6
* Minify javascript names
* Change progressbar style
* Add animations on progressbar
* 1.0.5
* Only add css and js script in the media page to avoid any javascript error in other pages
* Rectify css
* Add function to get the code for the function.php file of the theme
* Don't redefine the Wordpress basic size names
* 1.0.4
* Fix the add_image_size issue ( height and width reversed )
* 1.0.3
* Fix the plugin language
* Add some translations
* Externalise some css
* Add sizes in the image adding to an article
* Add setting link in the plugins list
* Use admin_url instead of home_url
* Add legend for colors
* Some code refactoring
* 1.0.2
* Fix the plugin license
* 1.0.1
* Add POT file
* Add french translation
* 1.0
* First release
* Thumbnail regenerate
* Image size generation